cURL / Mailing Lists / curl-users / Single Mail


Working with

From: Daniel F Reimann <>
Date: Tue, 27 May 2003 07:24:36 -0400

Hi Everyone,

I am working with the USPS's page at
Essentially, I am trying to submit an address and have it return the zip
+ 4 code for US addresses. It posts to a JSP page as you'll see.
Here's what I do:

curl -o z41.html -b z4_cookies.txt -c z4_cookies.txt -A "Mozilla" -L

and it gives me the page with the form to enter the addresses. Now does not much care for evaluating the html, but it does
evaluate it to an extent and I went through and picked the rest of the
elements of the form out myself.

From the UNIX command line: perl < z41.html




So submitting something like:

curl -o z42.html -b z4_cookies.txt -c z4_cookies.txt -A "Mozilla" -L -d

will yield an error every time:

<BODY><H1>Server Error</H1>
This server has encountered an internal error which prevents it from
fulfilling your request. The most likely cause is a misconfigur
ation. Please ask the administrator to look for messages in the server's
error log.

I am wondering if anyone has worked with this site/page and what he or
she did to work the the jsp page and get this to work.

I am on curl 7.10.3 (i686-pc-linux-gnu) libcurl/7.10.3 OpenSSL/0.9.6
zlib/1.1.3 on a cobalt RAQ 550.

At the outset, is there something I am blatantly missing?

Thank you in advance for your advice and comments.

Daniel F. Reimann

This email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software.
Received on 2003-05-27