cURL / Mailing Lists / curl-users / Single Mail

curl-users

Windows bug assistance needed

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 20 Feb 2002 09:42:21 +0100 (MET)

Hey

We have this bug report that identifies a problem with -I and -w with
time_total with curl 7.9.4 on a Windows machine.

As noted below, I can't repeat this problem on my test machines (none of
them being Windows).

We need help from someone running windows that can repeat this and do a quick
debug to see how this can happen.

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
---------- Forwarded message ----------
Date: Tue, 19 Feb 2002 12:38:59 -0800
From: noreply_at_sourceforge.net
To: noreply_at_sourceforge.net
Subject: [ curl-Bugs-515228 ] -I option disables time_total variable
Bugs item #515228, was opened at 2002-02-09 07:24
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=100976&aid=515228&group_id=976
Category: http
Group: wrong behaviour
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Daniel Stenberg (bagder)
Summary: -I option disables time_total variable
Initial Comment:
Hi,
I found that the output of the time_total variable is
wrong (0.00) when used on a windows machine in
combination with the -I option. Example command:
curl -w "time_connect = %{time_connect}\ntime_total = %
{time_total}\n" -I curl.haxx.se
HTTP/1.1 200 OK
Date: Sat, 09 Feb 2002 15:16:34 GMT
Server: Apache/1.3.17 (Unix) PHP/4.0.4pl1
Content-Type: text/html; charset=iso-8859-1
time_connect = 0.372
time_total = 0.000
On a Linux machine for example the time_total variable
is not set to zero when using the same command.
Curl: curl 7.9.4 (win32) libcurl 7.9.4
OS: Windows 2000 SP 2 but I also saw this behaviour on
NT 4.0 SP 6a and with earlier curl versions
  regards
     Michiel
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2002-02-19 12:38
Message:
Logged In: NO
Daniel,
Your tests on Linux confirm what I found. On Linux the
combination -I and time_connect works.
I'm afraid I don't know much about C. I'd be happy to
conduct some tests but then you have to tell me what you
want me to do.
  regards
    Michiel
----------------------------------------------------------------------
Comment By: Daniel Stenberg (bagder)
Date: 2002-02-19 05:32
Message:
Logged In: YES
user_id=1110
Thanks for your report.
I've tried your example on both Solaris and Linux, both my
machines seem to output a correct result every time I try
this. I also poked around in the code and I can't see why
this would fail only because -I is used.
Would you be able to debug this a little in your end?
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=100976&aid=515228&group_id=976
Received on 2002-02-20