cURL Mailing List Monthly Index Single Mail
curl-library Mailing List Archives
Re: handling of unknown 1xx http codes
Dan Fandrich wrote:
> Does this occur in the wild? With which server and which conditions?
> This patch sound a bit dangerous. For example, the 101 response requires
> that the client switch to a different protocol, which if not done would
> result in a hung transfer or otherwise unsavoury results. The RFC reads
> a bit ambiguous to me. It talks about unexpected 1xx codes, but it doesn't
> differentiate between an unexpected 1xx code that has been defined in
> the RFC (or which there are two) or a 1xx code that has not been defined.
Whatever you do - don't treat a 1xx as the final response and continue
pipelining on that connection. It's part of the HTTP syntax that 1xx
isn't the final response. Treating unknown 1xx as an error and
aborting the connection would be ok.
There is occasionally talk of defining other 1xx codes in
ietf-http-wg, but none being standardised as far as I know. Possibly
through fear of implementations that will break when they see one :-)
Received on 2008-06-27
These mail archives are generated by hypermail.
Page updated November 12, 2010.
File upload with ASP.NET
web site info