Skip to main content
Explorer II
June 30, 2025
Question

Netx HTTPS POST request

  • June 30, 2025
  • 1 reply
  • 494 views

hi 

i am working with HTTPS client code on stm32u585 microcontroller, using netx tcp/ip stack for the implementation. my requirement is to create a HTTPS post request with a json payload( nearly 8000 bytes). is there any reference or example available on HTTPS post request using netx. all i can see is the get request in the official GitHub.

if any example or reference regarding this issue will be much helpful for implementation.

 

with regards 

sabarinath 

    This topic has been closed for replies.

    1 reply

    Graduate
    July 1, 2025

    HTTP messages are decoded in _nx_web_http_server_receive_data.c

    Here GET and POST messages are selected

    in case of POST, VOID _nx_web_http_server_put_process(NX_WEB_HTTP_SERVER *server_ptr, NX_PACKET *packet_ptr) is called 

    inside _nx_web_http_server_put_process() nx_web_http_server_request_notify() is called

    You have to provide nx_web_http_server_request_notify() and assignto your HTTP server in  nx_web_http_server_create()

    /* Call the user supplied function to notify the user of the put request. */

    status = (server_ptr -> nx_web_http_server_request_notify)(server_ptr, NX_WEB_HTTP_SERVER_PUT_REQUEST, server_ptr -> nx_web_http_server_request_resource, packet_ptr);

     

     

    Super User
    July 1, 2025

    @mbarg.1 wrote:

    HTTP messages are decoded in _nx_web_http_server_receive_data.c


    That's the server side; I think @sabari1 is asking for the client side - ie how to make the request ?

    Graduate
    July 1, 2025

    OOPS ..

    @Andrew Neil is right.

    As far as I know, no examples for this case.

    I guess @sabari1 has to use TCP socket to send a packet with HTTP/HTTPS PUT request writing ad hoc code.

    Later will have to manage server reply ...