curl-and-php
Re: Getting Raw Response
Date: Wed, 6 Aug 2008 13:07:45 +0200 (CEST)
On Wed, 6 Aug 2008, Steven Morgan wrote:
> I'm looking to pass a PHP cURL response to my own parsing method, and would
> like to access the exact response received when a request is made, is this
> possible? I'm aware that I can add headers to the output for example, but
> I'm concerned this is not the pure response?
The last sentence makes me very puzzled. Of course the *output* is not the
pure *response*. The output is a request, the response is input (as CURL/PHP
is always acting as a client).
> Additionally, would I be right in thinking that if I were to set a cookie
> header via CURLOPT_HTTPHEADERS, and disable cURL's built in cookie handling
> this would still work correctly?
Yes, and there's even a shortcut for this called CURLOPT_COOKIE.
-- / daniel.haxx.se _______________________________________________ http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-phpReceived on 2008-08-06