curl-and-php
RE: view outgoing post string?
Date: Thu, 8 Apr 2010 09:14:59 +0200
Use http header for firefox: https://addons.mozilla.org/addon/3829
Than you can read everything which is being send and being received.
_____
Van: curl-and-php-bounces_at_cool.haxx.se
[mailto:curl-and-php-bounces_at_cool.haxx.se] Namens Peter Miller
Verzonden: donderdag 8 april 2010 4:57
Aan: curl-and-php_at_cool.haxx.se
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
Received on 2010-04-08