commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominic Hughes <domi...@theory.Stanford.EDU>
Subject httpclient: possible HttpClient/PostMethod bug
Date Mon, 27 May 2002 02:30:52 GMT
The attached test program highlights a possible bug in
HttpClient/PostMethod: at some web sites the parameters of a post do not
seem to register correctly.

The test program retrieves an html page from
http://sirius.chinalake.navy.mil using a post method in two different
ways: (1) "by hand", using standard java classes (URLConnection etc), and
(2) using classes HttpClient and PostMethod.  As would be expected, the
page retrieved by (1) is identical to the one obtained by entering the
post parameters by hand at http://sirius.chinalake.navy.mil/satpred/.  
However, (2) returns a garbled page: the post parameters do not seem to
register properly.  Can anybody explain why?

I attached the output of the test program, which prints out a few lines of
the page retrieved by (1) and the corresponding lines of the page
retrieved by (2) --- clearly different.

Is this really a bug in HttpClient/PostMethod, or does the test program
employ HttpClient and PostMethod incorrectly?

Feedback welcome!

Dominic Hughes and Julien Basch
http://boole.stanford.edu/~dominic

Mime
View raw message