curl-users
Re: Problems and infos
Date: Mon, 24 Nov 2008 22:29:23 +0100 (CET)
On Mon, 24 Nov 2008, Massimiliano Cuttini wrote:
>> Try comparing the log output you see from a browser request using Wireshark
>> or LiveHTTPHeaders or equivalent with the log output you see doing the
>> request with curl (after enabling debugging, of course). Once you find the
>> difference, you can match the curl request.
>
> How can I enable debugging by using cURL bundled with PHP?
Now you're slipping into areas you're better off discussing on the
curl-and-php mailing list.
And for specificly the topic of debug/verbose output using the PHP/CURL
binding, you probably need to start checking out the source code (or contact
the PHP team) since I believe there's only very poor support for it yet.
I tend to recommend using the command line tool while working out the quirks
for exactly that reason.
> I would like to know how the HTTP request will be constructed so I can check
> if it's looks like LiveHTTPHeaders over Firefox.
curl --trace or --trace-ascii are perfect for that. PHP/CURL has no
alternatives similar to that afaik.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users FAQ: http://curl.haxx.se/docs/faq.html Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2008-11-24