Re: getting pages with FILE
| From: | jyrgen at gmx dot de | Date: | Sat, 04 May 2002 12:06:54 +0000 |
| Subject: | Re: getting pages with FILE | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-96036@lists.php.net to get a copy of this message | ||
On 3 May 02, at 12:16, Miguel Cruz wrote:
> On Fri, 3 May 2002 jyrgen@gmx.de wrote:
> > i'm using FILE to read a page via HTTP and construct an array of
> > HTML lines. After that i modify the page and echo it out.
> > this all works great. The web server delivers pages depending on
> > browser types. Now i need to "pretend" a certain browser. Can this
> > be done ? What kind of HTTP-request does FILE send to the
> > webserver ?
>
> 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..."
> 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 ?
jyrgen