cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: write-out (-w) under windows

From: Sebastien WILLEMIJNS <sebastien_at_willemijns.com>
Date: Tue, 20 Dec 2011 21:21:14 +0100

On Tue, Dec 20, 2011, at 10:58, Dan Fandrich wrote:
> On Sun, Dec 18, 2011 at 11:35:06AM +0100, Sebastien WILLEMIJNS wrote:
> > i try under windows to output datas with -w but i do not find some
> > examples that's works
> > any ideas ?
> >
> > curl.exe ftp://mir1.ovh.net/grenouille.com/16384.rnd -o delete.me -m 13
> > --write-out "time_total=%%{time_total}\n"
>
> This works fine for me when running from a batch file under WINE. If
> typed
> in on the command-line, naturally you only need one percent sign. What
> curl version and binary are you using? What output do you actually see?

C:\>curl -V
curl 7.23.1 (i386-pc-win32) libcurl/7.23.1 OpenSSL/1.0.0c zlib/1.2.5
Protocols: dict file ftp ftps gopher http https imap imaps ldap pop3
pop3s rtsp
smtp smtps telnet tftp
Features: AsynchDNS Largefile NTLM SSL libz

C:\>curl.exe ftp://mir1.ovh.net/grenouille.com/16384.rnd -o de
lete.me -m 13 --write-out "time_total=%{time_total}\n"
  % Total % Received % Xferd Average Speed Time Time Time
  Current
                                 Dload Upload Total Spent Left
                                 Speed
  1 16.0M 1 183k 0 0 51955 0 0:05:22 0:00:03 0:05:19
  52186^C
Terminer le programme de commandes (O/N) ?

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-12-20