curl-and-php
RE: Getting Raw Response
Date: Thu, 7 Aug 2008 09:20:05 +0200 (CEST)
On Wed, 6 Aug 2008, Steven Morgan wrote:
> Is it possible to disable cURL Content Decoding without disabling the cURL
> Transfer Decoding?
Yes, that's why they are two separate options.
> Are these supported in PHP 5.2.5?
I have no idea.
> I just tried setting to both 0 and false and observed no change in output,
> despite the Transfer-encoding header being received as "chunked". Where
> content is received in a "chunked" state and CURLOPT_HTTP_CONTENT_DECODING
> set to false, I'm assuming it should not be possible to display cURLS output
> correctly in a browser? (This was my mini test hitting google.com that's why
> I ask).
Well, chunked encoding will just give you a few extra hexadecimal numbers in
the body, the rest should look normal.
> What is the best way to ensure these settings have been applied?
You "ensure" options are set by setting them... How else would it be done?
-- / daniel.haxx.se _______________________________________________ http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-phpReceived on 2008-08-07