Re: fsockopen and HTTP 1.1 Problem
| From: | Chris Shiflett | Date: | Thu, 25 Mar 2004 17:14:37 +0000 |
| Subject: | Re: fsockopen and HTTP 1.1 Problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-181499@lists.php.net to get a copy of this message | ||
--- Mooki <Mooki@mooki.de> wrote:
> I am using these to get the code of a page that is listed in the code
> below. I am using the example code of fsockopen on php.net as
> reference.
>
> I can get the response header but i have a problem with the CHUNKs.
I can show you how to deal with chunked responses, but I think this is
unnecessary.
You can open a remote URL just as if it were a local file if
allow_url_fopen is enabled:
$handle = fopen('http://example.org/',
'r');
...
Hope that helps.
Chris
=====
Chris Shiflett - http://shiflett.org/
PHP Security - O'Reilly
Coming Fall 2004
HTTP Developer's Handbook - Sams
http://httphandbook.org/
PHP Community Site
http://phpcommunity.org/