[PHP] HTTP HEAD request using curl??

2003-09-30 Thread Marc Richards
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.

I need to do a whole bunch of url calls but all I need is the headers, I
don't have curl support compiled in and I probably won't bother compiling in
if it can't do HEAD (I'll just use fopen).

Has anybody been able to do this?


Marc

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] HTTP HEAD request using curl??

2003-09-30 Thread Marc Richards

"Chris Shiflett" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]

> cURL is great for handling all of the details for you, but if all you are
> wanting to do is send a HEAD request and read the headers, are you sure
that
> using fopen() isn't a good solution?
>

Well that is plan b, it would have been a little easier with curl though.
At least this way I don't have to recompile and add curl support.

Marc

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php