Re: How do I customize the User-Agent when opening a remote file?

From: Date: Fri, 16 Aug 2002 10:03:42 +0000
Subject: Re: How do I customize the User-Agent when opening a remote file?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-112928@lists.php.net to get a copy of this message
one of the solutions is not using fopen() instead use another class that is able to post to pages and retrieve them. check phpclasses.org "Dallas Thunder" <yuanzhica@yahoo.ca> wrote in message news:20020815013830.95421.qmail@pb1.pair.com... > How do I customize the User-Agent when using fopen() or file() to open a > remote file? > > PHP use "PHP/4.2.3-dev" on my system as the User-Agent when I using file() > function to retrive a remote file. Howerver, some servers will refuse to > serve browsers other than Mozilla compatible and return a 403 code. Is > there any method to let me define User-Agent for my own? Thanks! > > > > > >

« previous php.general (#112928) next »