Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Yet another question on POSTing with LWP

by mdillon (Priest)
on Apr 22, 2002 at 21:13 UTC ( [id://161151]=note: print w/replies, xml ) Need Help??


in reply to Yet another question on POSTing with LWP

It looks like the other fields are required as part of the form submission, even if they are left blank. Changing the my $req line to the following worked for me:
my $req = POST 'http://www.usps.com/cgi-bin/zip4/zip4inq2', [ 'Firm' => '', 'Urbanization' => '', 'Delivery Address' => '3601 Fallstone Court', 'City' => '', 'State' => '', 'Zip Code' => '20744', 'Submit' => 'Process', ];

Replies are listed 'Best First'.
Re: Re: Yet another question on POSTing with LWP
by Shizzle (Novice) on Apr 23, 2002 at 13:13 UTC
    Tried your suggestion this morning when I got to to office. It worked perfectly. Thanks for the tip and big ups for responding so quickly!!!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://161151]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-25 16:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found