S
Sergey
Hi, everybody.
Do you know, which HTTP response produces WebException with Status ==
WebExceptionStatus.ReceiveFailure?
I get this exception raised in my small C# tool whenever the HTTP server
returns HTTP/1.1 200 OK with no more data in the response body. If there are
some other data after 200 OK, then no WebException is thrown.
Can it be that the reason of WebException in this case is the absence of
the response body? Because in RFC2616 it is mentioned that in case when
response contains no data the correct HTTP answer code must be "204 No
Content".
If this is wrong newsgroup could you please give me a hint, where can I
receive an answer on my question?
Thank you.
Sergey.
Do you know, which HTTP response produces WebException with Status ==
WebExceptionStatus.ReceiveFailure?
I get this exception raised in my small C# tool whenever the HTTP server
returns HTTP/1.1 200 OK with no more data in the response body. If there are
some other data after 200 OK, then no WebException is thrown.
Can it be that the reason of WebException in this case is the absence of
the response body? Because in RFC2616 it is mentioned that in case when
response contains no data the correct HTTP answer code must be "204 No
Content".
If this is wrong newsgroup could you please give me a hint, where can I
receive an answer on my question?
Thank you.
Sergey.