Re: [PHP] getting pages with FILE
On 3 May 02, at 12:16, Miguel Cruz wrote: On Fri, 3 May 2002 [EMAIL PROTECTED] 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] getting pages with FILE
On Saturday 04 May 2002 20:06, [EMAIL PROTECTED] wrote: never heard of cURL ? is it a extension for PHP ? google curl ? -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Some men who fear that they are playing second fiddle aren't in the band at all. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] getting pages with FILE
On Sat, 4 May 2002 [EMAIL PROTECTED] 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] getting pages with FILE
hello all, 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 ? juergen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] getting pages with FILE
On Fri, 3 May 2002 [EMAIL PROTECTED] 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 If that's not going to work out, you may need to use something like cURL. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php