Hi all,

Don't know if this is off-topic :

I have a script that uses the LWP::UserAgent module to retrieve some page content from an other website. This worked fine, untill a few days ago. Now all I get is a 403 Forbidden error. I can still view the contents with a browser.

Is it possible for a server to see the difference between a browser and a script using the LWP::UserAgent module ? Can I fix this ?

Here's a part of the code I use :

require LWP::UserAgent;
$UserAgent = new LWP::UserAgent;
$request = new HTTP::Request 'GET', "http://www.somedomain.tld/somepage.html";;
$UserAgent->agent('Mozilla 4.7');
$response = $UserAgent->request($request);
@content = split (/\n/, $response->content);

Any help ?



Kind regards,



Rene Verharen


Please DO NOT reply to me personally. I'll get my copy from the list.


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to