How are you using Perl to send the http request? If it’s with LWP
(a.k.a. libwww-perl), there’s a user_agent variable to set – check the LWP docs
If your perl program is making the actual headers by itself, you should have a
user-agent header like this: User-Agent: Mozilla/4.x (Win95)
It may have been the lack of this or another header that “gave you away.”
Another difference between your browser and the script is the IP address –
maybe they blocked your IP?
“Winston D. Neutel” wrote: > > How are you using Perl to send the http request? If it’s with LWP > (a.k.a. libwww-perl), there’s a user_agent variable to set
Actually, he’d want to look for the HTTP_REFERER variable
-Mike K.
> > If your perl program is making the actual headers by itself, you should have a > user-agent header like this: User-Agent: Mozilla/4.x (Win95) > > It may have been the lack of this or another header that “gave you away.” > Another difference between your browser and the script is the IP address – > maybe they blocked your IP?
“Winston D. Neutel” <winston@dramaturgy.net> wrote in message news:99d5gr$24i$1@constitution.worldwebserver.com… > How are you using Perl to send the http request? If it’s with LWP > (a.k.a. libwww-perl), there’s a user_agent variable to set – check the LWP > docs > > If your perl program is making the actual headers by itself, you should have a > user-agent header like this: User-Agent: Mozilla/4.x (Win95)
I use Lynx started by Perl and returning the page to Perl
> It may have been the lack of this or another header that “gave you away.” > Another difference between your browser and the script is the IP address – > maybe they blocked your IP?