Hello again Monks,

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

http://www.usps.com/cgi-bin/zip4/zip4inq2
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/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:

http://www.usps.com:80/cgi-bin/zip4/zip4inq2
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.

In reply to POST with LWP yields HTTP 302 Not Allowed - Too bad for me? by Shizzle

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.