RE: view outgoing post string?
"YupLounge website analyse en optimalisatie" <[email protected]>
| Newsgroups | gmane.comp.web.curl.php |
|---|---|
| Message-ID | <C1E9C29DF1014156BCEEFC4AC9EAA520@yuploung008f4f> |
Use http header for firefox: https://addons.mozilla.org/addon/3829 Than you can read everything which is being send and being received. _____ Van: [email protected] [mailto:[email protected]] Namens Peter Miller Verzonden: donderdag 8 april 2010 4:57 Aan: [email protected] Onderwerp: view outgoing post string? 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