curl-users
RE: Format report using write-out
Date: Mon, 1 Dec 2003 11:46:28 -0000
Thanks for that Alexander.
I think I had generally got the write-out options working, but I was
getting confused because I was outputting the whole curl output to a
file e.g.:
curl -w "%{time_total}\n" -L
http://NotesServer/database.nsf/Menu?openform > output.htm
..so the variable information was getting tagged on the end of the
output.htm file!
Once I turned on the -o option to output the HTML file, I realised the
variable info was there on the stdout all along!
Thanks
Reuben
-----Original Message-----
From: Alexander Lazic [mailto:al-curlusers_at_none.at]
Sent: 01 December 2003 10:45
To: curl-users_at_lists.sourceforge.net
Subject: Re: Format report using write-out
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/
-------------------------------------------------------
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