Shizzle has asked for the wisdom of the Perl Monks concerning the following question:
Some of you may know of the form on the USPS website that enables you to check addresses:
http://www.usps.com/ncsc/lookups/lookup_zip+4.html
which, in turn runs the CGI script
Around a month ago, I wrote a perl script using LWP to check a list of addresses automatically. Just today, I ran the script again and got this reponse:http://www.usps.com/cgi-bin/zip4/zip4inq2
HTTP/1.0 302 (Found) Not Allowed Location: http://148.129.65.3:80/fwauthredirect148.129.65.9id000386429 +5 Content-Length: 120 Content-Type: text/html Client-Date: Wed, 15 May 2002 15:21:08 GMT Client-Peer: 56.0.78.101:80 Your request is being redirected to :<a href="http://148.129.65.3:80/f +wauthredirect148.129.65.9id0003864295">here</a>.
Assuming my script was accessing a port other than 80, I modified my script to include the URL:
But I got the same 302 Not Allowed message. Does this mean it is now impossible for me to access the CGI script via LWP? I always thought any CGI script you can access via a form on a web page can be accessed with LWP. Please enlighten. Thanks in advance for your help.http://www.usps.com:80/cgi-bin/zip4/zip4inq2
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: POST with LWP yields HTTP 302 Not Allowed - Too bad for me?
by dsheroh (Monsignor) on May 15, 2002 at 15:42 UTC | |
by Shizzle (Novice) on May 15, 2002 at 16:03 UTC | |
|
Re: POST with LWP yields HTTP 302 Not Allowed - Too bad for me?
by jsprat (Curate) on May 15, 2002 at 16:24 UTC | |
by Shizzle (Novice) on May 15, 2002 at 19:32 UTC | |
by perlNinny (Beadle) on Mar 17, 2010 at 18:29 UTC | |
by jdrago999 (Pilgrim) on Mar 17, 2010 at 22:50 UTC |