cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Follow up - cURL redirecting output to file in windows

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 19 Mar 2012 23:09:15 +0100 (CET)

On Mon, 19 Mar 2012, Paul Gordon wrote:

> Thanks much, yes the --trace-ascii seemed to work just fine. We were
> looking for the line "HTTP/1.1 200 OK" as a form of sanity checking.

Right, but you were checking the response body and the "HTTP/1.1 200 OK" is
not part of the body. Use the -i option and you'll get the headers included in
the output!

> <= Recv data, 5 bytes (0x5)
> 0000: 0
> 0003:

See? No body at all so that's there's no output file created. There is no
contents to put in the file!

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
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 2012-03-19