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!!!