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

http client and 100-Continue responses

Open ahctang opened this issue 8 years ago • 1 comments

Hello,

I realize this repository is for the server side, so I apologize if this is a stupid question.

I'm trying to use this client to communicate with a server running IIS, which sends 100-Continue in response to any post request regardless of what's in the HTTP header. The current client only receives the 100-Continue and the 200-OK response afterwards is never received.

Using this implementation of the client, what is the best way to modify it so that it will skip 100-Continue HTTP responses so that it can catch the true server response?

ahctang avatar Mar 24 '17 04:03 ahctang

To my understanding after reading briefly about this, the real status comes in the line after the 100-Continue status. We would need to add this exception when parsing the header on the client. But I realise that I will have to read up on this a bit more.

eidheim avatar Mar 24 '17 08:03 eidheim