note 24284 added to function.fopen

From: Date: Mon, 12 Aug 2002 05:57:49 +0000
Subject: note 24284 added to function.fopen
Groups: php.notes 
Request: Send a blank email to php-notes+get-34837@lists.php.net to get a copy of this message
I found PHP wrapper use "PHP" and version number (PHP/4.2.3-dev on my system) as the User-Agent to request remote files. However, some server will refuse to serve browsers other than Mozilla compatible, it will return a 403 code. So, how can I customize the User-Agent when I use fopen() or file() function to retrive a remote file? Many thanks. Don't tell me use fsockopen() instead. -- http://www.php.net/manual/en/function.fopen.php http://master.php.net/manage/user-notes.php?action=edit+24284 http://master.php.net/manage/user-notes.php?action=delete+24284 http://master.php.net/manage/user-notes.php?action=reject+24284

« previous php.notes (#34837) next »