view outgoing post string?
Peter Miller <[email protected]>
| Newsgroups | gmane.comp.web.curl.php |
|---|---|
| Message-ID | <[email protected]> |
hi, i would like to be able to see the outgoing post variables from my php curl script, is there any simple way to do this? the reason i ask is that there appears to be a discrpancy between the post variables i pass to curl with curl_setopt($ch,CURLOPT_POST,1); curl_setopt($ch,CURLOPT_POSTFIELDS,$post); and the post variables exiting curl as https. i've tried to observe the output myself by running everything though a proxy (webscarab), like so: curl_setopt($ch,CURLOPT_HTTPPROXYTUNNEL,0); curl_setopt($ch,CURLOPT_PROXY,"http://127.0.0.1:8008"); //webscarab operats on localhost (127.0.0.1), port 8008 by default this would work fine, except that im using https and i can't figure out how to get the certificate into the correct format (but that's beside the point of this message). so yeah the easiest thing would be if i could just view the outgoing post string. unfortunately neither curl_setopt($ch,CURLOPT_VERBOSE,1); or curl_setopt($ch,CURLOPT_HEADER,1); show me the post string. any help would be much appreciated! Peter Miller _______________________________________________ http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php