Jason Lindquist (jlindquist) wrote,
Jason Lindquist

Fucking Post Office...

I had a perfectly functional ZIP+4 lookup form on my browser default page. Then the Post Office's web people went and broke the CGI that handles it. I finally got it working again... they moved the CGI to a different hostname (zip4.usps.com,) but they also changed the fields they parse. If you use their site to fill in data, Javascript concatenates the "address1" and "address2" fields and puts the result in "address", which is what the CGI now parses. The CGI used to do that on its own.

(There is no need for me to navigate USPS's whole site, two pages deep, to get to this form.) Here's the working code, you can just drop this in any old web page to use it:

<FORM NAME="frmzip" ACTION="http://zip4.usps.com/zip4/zip4_responseA.jsp" METHOD=GET>
ZIP 4<br>Address: <INPUT id="address" TYPE="text" NAME="address" VALUE="" SIZE=27 MAXLENGTH=50 ><br>
City: <INPUT id="city" TYPE="text" NAME="city" VALUE="" SIZE=30 MAXLENGTH=35 ><br>
State: <INPUT id="state" TYPE="text" NAME="state" VALUE="" SIZE=2 MAXLENGTH=12 > 
ZIP: <INPUT id="zipcode" TYPE="text" NAME="zipcode" VALUE="" SIZE=10 MAXLENGTH=10 >
<INPUT type=hidden NAME="Selection" ID="Selection" value="1">
<input type=hidden name="urbanization" value="">
<input type=hidden name="firm" value="">  
<input type=hidden name="address1" value="">
<input type=hidden name="address2" id="address2" value="">
<input type=submit NAME="Submit">

  • Aurora reference

    For reference, the only two links I could find on Aurora shooter (and Westview '06 grad) James Holmes, prior to his attendance at Westview being…

  • Your friend, FunnyJunk.com

    If you've never heard of funnyjunk.com, it's run by a content thief. It's a haven for incompetence, stupidity, and douchebaggery. Site owner…

  • X-header crap

    It is ridiculous how big this section of my .muttrc has gotten. Every goddamned special snowflake mailer has to have its own collection of…

  • Post a new comment


    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.