hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From talldean <talld...@gmail.com>
Subject Re: Problems calling new PostMethod(url)
Date Thu, 21 Aug 2008 16:50:15 GMT

The main log wasn't showing it, in this case, but a second log popped up a
noclassdef error; that, I can fix.

-D



talldean wrote:
> 
> I have the following block of code, using a freshly downloaded
> HttpClient-3.1, and cannot figure out what I've done wrong.
> 
> try {
> 	String urlString = "http://www.google.com";	
> 	logger.trace("1");
> 	PostMethod method = new PostMethod(urlString);
> 	logger.trace("2");
> } catch (Exception e) {
> 	logger.trace("3");
> }
> 
> The logs get the message "1", and the program terminates before it seems
> to get to the trace 2 line, without throwing an exception of any sort. 
> Any ideas?  Same thing seems to happen with both PostMethod and GetMethod,
> and I'm out of ideas.
> 
> 

-- 
View this message in context: http://www.nabble.com/Problems-calling-new-PostMethod%28url%29-tp19091079p19092671.html
Sent from the HttpClient-User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org


Mime
View raw message