Why does squid reject this multipart-form-data POST from curl?
- by keturn
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.)