cURL / Mailing Lists / curl-users / Single Mail

curl-users

http code output

From: Andreas Rütten <ar_at_pre-secure.de>
Date: Mon, 24 Jan 2005 17:30:14 +0100

hy,

if played al lot with curl and I like ist ;-)

but now I have a problem.

I use curl with the switches -s -S -f -w %{http_code}
so that the only output i get is the http status code.

It runs fine for the most cases.
But if i recieve a http code 201 I get also the html document on the stdout.
I tested it with http code 200 201 403 404 405 and all runs so that only
the http code ist on the stdout.

I hope anyone can solve my confusion

Andreas
Received on 2005-01-24