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 16:08:30 GMT

Hello list, 

I am sorry for posting this list-entry for the third time, but Nabble made
some trouble :-). Now it should really go to the mailing list.

I noticed that when I do something like: 

                        System.out.println("execute Request
                        int statuscode =
                        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-tp29648794p29648794.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