Re: getting pages with FILE
| From: | Miguel Cruz | Date: | Sat, 04 May 2002 19:59:01 +0000 |
| Subject: | Re: getting pages with FILE | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-96076@lists.php.net to get a copy of this message | ||
On Sat, 4 May 2002 jyrgen@gmx.de wrote:
>> It identifies itself along these lines:
>>
>> HTTP-User-Agent: PHP/4.1.2
>
> thank you. now is there a way to modify the above identification,
> say something like "HTTP-User-Agent: Netscape 4 (Mozilla etc..."
I haven't really checked, but I suspect the only way to change this would
be to muck with the PHP source code.
>> If that's not going to work out, you may need to use something like cURL.
>
> never heard of cURL ? is it a extension for PHP ?
Well, it's an independent library and CLI utility, but there is a nice set
of PHP calls that link in to it. It has its own section in the manual.
http://php.net/curl
miguel