cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: cancel a http tranfer after header

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Mon, 28 Jul 2008 20:11:56 -0700

On Mon, Jul 28, 2008 at 10:50:10PM -0400, Blue Hawk wrote:
> I want to examine a header. If its before or after a certain date i want to
> cancel the transfer (pic, binary, html, whatever). How should i handle this?

Just return an error code from the header callback function. But you
can instead just send the If-Modified-Since header to an HTTP server
and it will do the determination for you.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2008-07-29