arduino-libraries / ArduinoHttpClient

Arduino HTTP Client library
282 stars 170 forks source link

Problem with maximum TCP payload #100

Closed arangu97 closed 3 years ago

arangu97 commented 3 years ago

Hello,

I am having issues with a POST request with this library and the Ethernet module ENC28J60:

http.post(url, contentType, json);

The problem is that the the HttpClient is not sending more than 512 Bytes of TCP Payload and my endpoint does not receive it properly.

However if I use the EthernetClient connect, print, etc.. works fine and my endpoint gets the JSON data properly.

I am wondering if there is any max buffer parameter defined in this library.

Thank you.