Open drewwells opened 13 years ago
Make sure to build the query, headers are never passed correctly, should be fixed but I don't think this is being maintained anymore.
change line 164:
curl_setopt( $ch, CURLOPT_POSTFIELDS, $_POST );
to
curl_setopt( $ch, CURLOPT_POSTFIELDS, http_build_query($_POST));
Reproduce: $.post('url', {a: 1, b:2 }, function(){ console.log(arguments); });
Proxy is eating the data passed through and changing it.
Here's what the proxy looks like:
POST /catalog/j_spring_security_check HTTP/1.1 User-Agent: Mozilla/5.0 (X11; U; Linux x8664; en-US; rv:1.9.2.13) Gecko/20101206 Ubuntu/10.10 (maverick) Firefox/3.6.13 Host: apollo.erdas.com Accept: /_ Content-Length: 258 Expect: 100-continue Content-Type: multipart/form-data; boundary=----------------------------60ac83a9a5b8
------------------------------60ac83a9a5b8 Content-Disposition: form-data; name="j_username"
pizza ------------------------------60ac83a9a5b8 Content-Disposition: form-data; name="j_password"
party ------------------------------60ac83a9a5b8--
Here's what it SHOULD look like:
POST /catalog/j_spring_security_check HTTP/1.1 Host: apollo.erdas.com User-Agent: Mozilla/5.0 (X11; U; Linux x8664; en-US; rv:1.9.2.13) Gecko/20101206 Ubuntu/10.10 (maverick) Firefox/3.6.13 Accept: /_ Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 115 Connection: keep-alive Content-Type: application/x-www-form-urlencoded; charset=UTF-8 X-Requested-With: XMLHttpRequest Content-Length: 37 Cookie: JSESSIONID=0E680034985149CC7001CDE5B2029FA9; Pragma: no-cache Cache-Control: no-cache
j_username=pizza&j_password=party