LWP::UserAgent and referer?

Robert L. Harris Robert.L.Harris at rdlg.net
Wed Nov 21 15:40:06 CST 2001



I'm trying to use a perl script to mirror some patches.  The maker wishes 
you to manually go and download each time, which gets a bit tedious.

I've got it getting a list of patches, etc, but when I use "getstore"
from LWP::Simple I get an error message:


----------------------------------------------

403 Error - Authentication Failed (Forbidden)

  Your browser failed to send us the proper authentication information 
to gain access to this portion of the site. 

  Parts of the support sites require information (The HTTP_REFERER 
header) to indicate which part of the site you are coming from, so 
you can be displayed the correct page. If you are reading this page, 
your browser failed to send that information. 

----------------------------------------------



It seems they're tracking which pages you used to come through.  Any
way to work around this?  Mirroring these gets very tedious by hand
each week (yeah, they patch that often.



:wqr
---------------------------------------------------------------------------
Robert L. Harris                |  Micros~1 :  
Senior System Engineer          |    For when quality, reliability 
  at RnD Consulting             |      and security just aren't
                                \_       that important!
DISCLAIMER:
      These are MY OPINIONS ALONE.  I speak for no-one else.
FYI:
 perl -e 'print $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'




More information about the Pikes-peak-pm mailing list