cURL / Mailing Lists / curl-users / Single Mail

curl-users

-w option does not work from bat(curl v7.9 win32)

From: Masahiro Inoue <inoue_at_siterock.co.jp>
Date: Tue, 16 Oct 2001 19:30:03 +0900

Hi,
I wrote the bat file for DOS like this.

perl d:\tools\curl\setdatetime.pl
d:\tools\curl\curl --silent -o NUL --stderr NUL -w \n%DATE%"
"%TIME%\t%{url_effective}\t%{http_code}\t%{time_total}\t%{time_namelookup}\t%{time_connect}\t%{time_pretransfer}\t%{size_download}\t
%{speed_download} http://www.siterock.co.jp

But, variable was not displayed correctly.
--------------------------------- BAT for DOS ----------------------------------
D:\Tools\curl>test.bat

D:\Tools\curl>perl d:\tools\curl\setdatetime.pl

D:\Tools\curl>d:\tools\curl\curl --silent -o NUL --stderr NUL -w \n2001/10/16" "
18:27\t{http_code}\t{time_namelookup}\t{time_pretransfer}\t{speed_download} http
://www.siterock.co.jp

2001/10/16 18:27 {http_code} {time_namelookup} {time_pretransfe
r} {speed_download}
D:\Tools\curl>
------------------------------------------------------------------------------------------

Put command like this directory, It works.
D:\Tools\curl>d:\tools\curl\curl --silent -o NUL --stderr NUL -w \n%DATE%" "%TIM
E%\t%{url_effective}\t%{http_code}\t%{time_total}\t%{time_namelookup}\t%{time_co
nnect}\t%{time_pretransfer}\t%{size_download}\t%{speed_download} http://www.site
rock.co.jp

2001/10/16 18:27 http://www.siterock.co.jp 200 0.080 0.020
0.050 0.050 401 5012.500
D:\Tools\curl>

Regards,
Masa
Received on 2001-10-16