cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Fw: HTTP HEAD request??

From: Marc Richards <mrichar1_at_swarthmore.edu>
Date: Fri, 03 Oct 2003 11:42:30 -0400

"Daniel Stenberg" <daniel@haxx.se> wrote in message
news:Pine.LNX.4.58.0310031505310.18734@linux3.contactor.se...
> On Mon, 29 Sep 2003, Marc Richards wrote:
>
> > Is it possible to do a http HEAD (instead of GET, POST or PUT) request using
> > the php curl extension?  I know that curl itself can do it, but I wasn't
> > able to find the appropriate CURLOPT constant in the documentation for the
> > php extension.
>
> CURLOPT_NOBODY is the name of the option in libcurl.


Does that actually do a HEAD or does it just do a GET and discard the body?
I don't want to stress the server unneccesarily.

Marc

------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf Received on 2003-10-03