"Bernhard 'Gustl' Bauer" <address@hidden> wrote:
I tried to connect to my LWIP http server via proxy. I send POST packets
with a query string in the body. After the proxy HEAD and BODY are in
two separate packets. It look like there is only the HEAD in pbuf of
http_recv. Any idea what I can do about this?
Probably nothing. It is likely to be a characteristic of the way that
proxy server is implemented. I expect it delays sending the body for
long enough that the body ends up travelling in a separate packet from
the header.
Is your concern related to network throughput issues, buffer usage
issues in LWIP, or your application expecting to receive a complete HTTP
request in a single packet? The last of these is a bad assumption to
make for any protocol based on TCP/IP.