Why does squid reject this multipart-form-data POST from curl?
Posted
by keturn
on Server Fault
See other posts from Server Fault
or by keturn
Published on 2010-01-29T19:54:46Z
Indexed on
2010/04/15
3:34 UTC
Read the original article
Hit count: 287
This fails:
$ curl --trace multipart-fail.log -F "source={}" http://127.0.0.1:3003/jslint
With a squid status 417 error, ERR_INVALID_REQ
.
- trace of failing curl request
- trace of successful curl request that uses urlencoding (curl -d) instead of multipart (curl -F)
- formatted version of squid's error message
I've never had this in practice through a web browser, so it's probably curl usage instead of squid, but if I tell curl not to use the squid proxy, the web application on the other end accepts it just fine.
(If there's a more appropriate StackExchange site for this, please let me know.)
© Server Fault or respective owner