Hi Again, I can reproduce this with: squidclient -v -m POST -H 'Accept-Encoding: *;q=0.1\nTE: trailers\nExpect:100-continue\nHost: www.megaupload.com\nConnection: TE,Keep-Alive\nDate: Wed, 09 Jun 2010 18:49:31 GMT\nContent-Length: 0\nContent-Type: application/x-www-form-urlencoded\n' '/mgr_ads.php?s=0' Looking at the client_side.c code, I found that: if (httpHeaderHas(&r->header, HDR_EXPECT)) { int ignore = 0; if (Config.onoff.ignore_expect_100) { String expect = httpHeaderGetList(&r->header, HDR_EXPECT); if (strCaseCmp(expect, "100-continue") == 0) ignore = 1; stringClean(&expect); } if (!ignore) { ErrorState *err = errorCon(ERR_INVALID_REQ, HTTP_EXPECTATION_FAILED, r); http->log_type = LOG_TCP_MISS; http->entry = clientCreateStoreEntry(http, http->request->method, null_request_flags); errorAppendEntry(http->entry, err); return; } } Is this true? If I don't add "ignore_expect_100" the HTTP request with it will _always_ fail? If this is right, why is that? I don't get it. Thanks, Felipe Damasio 2010/6/10 Felipe W Damasio <felipewd@xxxxxxxxx>: > Hi All, > > I'm having some trouble with a tool of www.megaupload.com, which is > kind of a rapidshare-like repository. > > They provide a tool for integration the download of files on Firefox, > IE, etc. But squid-2.7Stable8 keeps returning ERR_INVALID_REQ. > > I grabbed one POST which triggers the error: > > POST /mgr_ads.php?s=0 HTTP/1.1 > Accept: */* > Accept-Encoding: *;q=0.1 > TE: trailers > Expect: 100-continue > Host: www.megaupload.com > Connection: TE,Keep-Alive > Date: Wed, 09 Jun 2010 18:49:31 GMT > Content-Length: 0 > Content-Type: application/x-www-form-urlencoded > > > Could anyone help me figure out why squid doesn't handle this well? > If I pass this directly to the site the server plays nice. > > And how can I fix it? > > Thanks for your help. > > Cheers, > > Felipe Damasio >