RE: [PHP] How to simulate any browser

From: Date: Wed, 03 Oct 2001 21:34:25 +0000
Subject: RE: [PHP] How to simulate any browser
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-69830@lists.php.net to get a copy of this message
So you need a browser of your own? You should be using fosockopen() php.net/fsockopen Maxim Maletsky www.PHPBeginner.com -----Original Message----- From: Kamil Nowicki [mailto:hilarion@elfin.pl] Sent: mercoledi 3 ottobre 2001 17.47 To: PHP-list Subject: [PHP] How to simulate any browser Hello everyone! I have a problem. My webpage (say webpage_1) needs to get some data presented on other webpage (wepage_2). I tried to use fopen("http://webpage_2?params","r") and got connection and stuff, but I suppose that webpage_2 uses some script checking what type of browser sent the request, and sends back an error message. I do not have cURL library installed (and I can't install it cause I'm not an administrator of the server and my administrator doesn't want to install it) so I can't use it to pretend my PHP request is from IE, Netscape or any other WWW browser. I was thinking abous using sockets to communicate directly and make a HTTP request manually, but I do not know the HTTP request specifications (how to send all needed info including browser id). If You know how to send browser info to WWW server using standard PHP functions or some common libraries' functions, than PLEASE HELP ME. Thanx in advance. Kamil 'Hilarion' Nowicki PS.: I can send phpinfo() of my server on Your request. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#69830) next »