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" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > 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! > > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php