This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TM4C1294NCPDT: HTTP request

Part Number: TM4C1294NCPDT


Hello,

I am using tm4c129.

In my project, I am getting a POST request with body (data of 264 bytes), over TCP protocol.

The structure of the request looks like this (When I get it(:

The request starts with POST /command?token......EndOfGet HTTP / 1.1. then there are headers and at the end, there is the data (264 bytes).

When this request is sent to me several times, it is received differently at certain times - the request contains only the header and not the data.

I guess what happens is that the request is divided into two segments, the first contains the header and the second contains the data, I saw in Wireshark that the request is divided into two:

How do I get the whole request together (as can be seen in the picture)?

Are there any settings in TCP that I need to change?

Anyway, I would love to an example of getting large data via HTTP.

Thanks,

Oshrit

  • Hi Oshrit,

      I suppose the MCU is acting as a HTTP server. Is that correct? If this is the case, the "POST" came from the client (e.g. the browser). I'm not an expert on the HTTP protocol as to why the POST request is broken up into segment. Your question is beyond the scope of the MCU that we can support on this forum. You may do some Google search for HTTP protocol for circumstances the request is broken into segments and see if there are some settings that you can adjust.