curl-and-php
AW: HTTP HEAD request??
Date: Tue, 30 Sep 2003 09:10:04 +0200
If you set CURLOPT_HEADER the header is included in the body output.
I haven't found a different way to only get the header.
Jason
-----Ursprüngliche Nachricht-----
Von: Marc Richards [mailto:mrichar1_at_swarthmore.edu]
Gesendet: Monday, September 29, 2003 10:25 PM
An: curl-and-php_at_lists.sourceforge.net
Betreff: HTTP HEAD request??
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
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2003-09-30