hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From MitchK <mitc...@web.de>
Subject Invalid URL causes no Exception - instance keeps still
Date Thu, 09 Sep 2010 10:17:46 GMT

Hello list,

I noticed that when I do something like:

			System.out.println("execute Request "+method.getURI());
			int statuscode = this.httpClient.executeMethod(method);
			System.out.println("statuscode: "+statuscode);

The line "statuscode" is never printed, if the method was created with an
invalid URL.

In my test case, I tried something like that:

PostMethod method = new PostMethod("path");

Yes, I really mean "path" - this is my invalid url.

How should I notice that there went something wrong, when no Exception is

Thank you!

- Mitch
View this message in context: http://old.nabble.com/Invalid-URL-causes-no-Exception---instance-keeps-still-tp29647708p29647708.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

View raw message