Re: Raw headers from return value (-d equivalent)

Deepesh Malviya <[email protected]>
Newsgroups gmane.comp.web.curl.php
Message-ID <[email protected]>
You can set curl_setopt($curl, CURLOPT_HEADER, true);  to get the HTTP
headers along with response. If you need more, you can use curl_setopt($ch,
CURLOPT_HEADERFUNCTION, 'read_header'); where read_header will be the
function in which you can customize your reading.

For more info on these, http://in2.php.net/curl_setopt

Thanks,
Deepesh
http://voidweb.com

On Mon, Aug 9, 2010 at 8:59 PM, Marc Guay <[email protected]> wrote:

> Hi folks. Using the PHP library is there any way to get the raw
> headers out of the return value? Equivalent of command line
> http://curl.haxx.se/docs/manpage.html#-D--dump-header?
>
> Thanks,
> Marc
> _______________________________________________
> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
>



-- 
_Deepesh

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.