Hello,

This is in response (continuation of, really) to thread/message at:
http://marc.theaimsgroup.com/?l=jakarta-commons-dev&m=100775333809269&w=2

I have changed the way I use HTTPClient.  I no longer use HttpClient class, but rather 
a combination of HttpConnection, HttpMethod, and HttpState as was suggested in one of 
the messages sent to this list.

I still see HttpExceptions complaining about the missing Status line (response) 
starting with "HTTP/".

This is the how I am using HTTPClient now:

_httpMethod.recycle();
_httpMethod.setPath(path);

HttpConnection conn  = new HttpConnection(host, port);
HttpState state = new HttpState();
conn.open();
_httpMethod.execute(state, conn);
conn.close();

This snippet of code is wrapped in a try/catch block and it throws HttpException that 
I mentioned above for 48 out of 1159 URLs that I'm fetching.

I have tried this multiple times and I always end up with the same number of those 
exceptions (48), so it's not a fluke.

I don't understand how come the test that Rodney Waldhoff sent ( 
http://marc.theaimsgroup.com/?l=jakarta-commons-dev&m=100766114324755&w=2 ) works, yet 
I get this exception so often.

Any additional ideas?  Now that logging works, can I use it to look for a clue?  What 
should I look for?

Thanks,
Otis

_________________________________________________________________
iVillage.com: Solutions for Your Life 
Check out the most exciting women's community on the Web   
http://www.ivillage.com

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to