Index: transfer.c =================================================================== RCS file: /cvsroot/curl/curl/lib/transfer.c,v retrieving revision 1.392 diff -u -r1.392 transfer.c --- transfer.c 26 May 2008 20:39:41 -0000 1.392 +++ transfer.c 26 Jun 2008 12:58:38 -0000 @@ -587,7 +587,7 @@ k->p++; /* pass the \n byte */ #endif /* CURL_DOES_CONVERSIONS */ - if(100 == k->httpcode) { + if(100 <= k->httpcode && 199 >= k->httpcode) { /* * We have made a HTTP PUT or POST and this is 1.1-lingo * that tells us that the server is OK with this and ready @@ -661,7 +661,7 @@ data->req.headerbytecount += (long)headerlen; data->req.deductheadercount = - (100 == k->httpcode)?data->req.headerbytecount:0; + (100 <= k->httpcode && 199 >= k->httpcode)?data->req.headerbytecount:0; if(data->state.resume_from && (data->set.httpreq==HTTPREQ_GET) && Index: http.c =================================================================== RCS file: /cvsroot/curl/curl/lib/http.c,v retrieving revision 1.372 diff -u -r1.372 http.c --- http.c 22 Jun 2008 20:38:16 -0000 1.372 +++ http.c 26 Jun 2008 12:58:39 -0000 @@ -369,7 +369,7 @@ bool pickproxy = FALSE; CURLcode code = CURLE_OK; - if(100 == data->req.httpcode) + if(100 <= data->req.httpcode && 199 >= data->req.httpcode) /* this is a transient response code, ignore */ return CURLE_OK;