posted 14 years ago
I'm playing around with HttpClient for the first time and I am able to get it to send small requests but around 3500 bytes I start to get errors and if I use a 4000 byte request it never works. If I attempt to send the same large request through internet explorer it works fine. I used Wireshark to see what the difference was between what IE sent and what HttpClient sent. What I see is that after ie sends the first [ACK] to the server it then sends a [PSH, ACK] to the server that contains the http header info. When I use HttpClient it sends the first [ACK] and then starts sending [ACK]s with the request information. I never see HTTPClient send the HTTP header info. Am I not setting my http header up correctly through HttpClient? Here is my relevant code:
I've tried a lot of different permutations of this but I keep getting this error on larger requests:
Software caused connection abort: socket write error
Am I using the apache code incorrectly? Are there different settings I need to use for large requests? Any guidance would be appreciated.
Thanks
Tom