Android-Web-Server icon indicating copy to clipboard operation
Android-Web-Server copied to clipboard

HTTP POST requests exceeding 1500 byte cannot be obtained

Open ttgml opened this issue 5 years ago • 2 comments

When I use the http client to initiate an HTTP POST request, if the size of the first packet is greater than 1500 bytes, I can't get the full POST data.

ttgml avatar Oct 06 '19 07:10 ttgml

increase byte buffer at byte[] data = new byte[1500];

to your required length

sonuauti avatar Oct 13 '19 05:10 sonuauti

It's a more good idea to allocate an array as many as Content-Length

2minchul avatar Oct 14 '19 01:10 2minchul

done

ttgml avatar May 17 '23 08:05 ttgml