cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: debugging PHP-CURL code

From: Andrey Kravchuk <dushik_at_gmail.com>
Date: Tue, 22 Nov 2005 12:01:11 +0200

Daniel Stenberg wrote:

>> Of course you are not here to help me with my code, the only thing I
>> wanted to know is there a way to see what CURL actually sends to
>> server as a HTTP request?

> Unfortunately I don't think PHP/CURL exposes the powers of
> CURLOPT_DEBUGFUNCTION, but I think CURLOPT_VERBOSE at least makes some
> stuff easier.

I thought there might be some callback function which exists for
receiving HTTP reply.

As I have to report the way I solved the problem, I'll say I've
installed the third-party HTTP sniffer and debugging that way now.
Perhaps it's even more convenient than making debug output in the code.
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2005-11-22