cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Format report using write-out

From: Alexander Lazic <al-curlusers_at_none.at>
Date: Mon, 1 Dec 2003 11:45:02 +0100

Hi,

On Mon 01.12.2003 10:01, Reuben Pearse wrote:
>
>URL name | URL Alias | Total Time taken to retrieve | Total KB
>downloaded

curl -w "%{url_effective} | URL Alias | %{time_total} | %{size_download}\n"

What is an 'Url Alias' from client view?

>I am experimenting with the "--write-out" option but not getting very
>far. Any help with this would be greatly appreciated.

What these variables say => man curl || curl -M

>Another thing I would like to do, is use curl to report when the web
>server is going slow. I noticed there are options to set time-out
>options. I was thinking I could use this to periodically run a curl
>script against a server and if the time-out is exceeded to send an
>email to alert me to slow performance!

As i right understand you want to check the 'EXIT CODES' on
http://curl.haxx.se/docs/manpage.html

.
.
7 Failed to connect to host.
.
.
28 Operation timeout. The specified time-out period was reached
   according to the conditions.
.
.

I'm not sure which of them will be returned on

--connect-timeout
--max-time
--speed-time

and i don't know which of these params are usefull for you.

Hth

al ;-)

PS: Have you read really the manpage?!

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
Received on 2003-12-01