Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I spoof my browser env variables using Perl

Status
Not open for further replies.

giggollo

Programmer
Jul 29, 2003
1
CA
Hi all,

I am attempting to write a Perl script (client) that logs into a server (not my server) and performs some operations. I am using LWP::Useragent but when i log in, the server returns an error message that "your browser does not support frames". I want the perl script to communicate with the server in such a way that the server thinks its a normal browser (eg Internet Explorer 6) that it is talking to. If I define all environment variables (like HTTP_USER_AGENT etc) in my script, will it work? How can i know what browser environment variables to define? Please help!

Thanks in advance!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top