cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Finding HTTP Code Before downloading entire file

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 12 Jun 2003 15:27:58 +0200 (CEST)

On Thu, 12 Jun 2003, Robert Synnott wrote:

> Is there a way to find the return code (200 or whatever) without
> downloading the entire file first?

Send a HEAD first: CURLOPT_NOBODY.

-- 
 Daniel Stenberg -- curl: been grokking URLs since 1998
-------------------------------------------------------
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
Received on 2003-06-12