cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: How to Log Error Message From

From: Jake Peavy <djstunks_at_gmail.com>
Date: Tue, 9 Jan 2007 15:18:20 -0700

On 1/9/07, Mahesh Ramamurthy <mahesh31_at_gmail.com> wrote:
>
> Hi All,
>
> I have curl set up and using it in a perl script and things are working
> fine. What I would like to know is if we can log the error messages given
> out by CURL.
>
> For ex when I give an invalid URL this error message is printed to the
> screen.
>
> curl: (56) Received HTTP code 502 from proxy after CONNECT.
>
> I would like to know if I can capture this and write to a log file.
>

are you using cURL via a module (like WWW::Curl) or simply calling it from
system() or qx()?

-- 
-jp
Chuck Norris ends every relationship with "Its not me, its you".
Received on 2007-01-09