olegk 2004/09/17 12:50:47
Modified: httpclient/xdocs Tag: HTTPCLIENT_2_0_BRANCH tutorial.xml
Log:
Minor tweaks to the tutorial sample code. No more System.exit silliness
Contributed by Oleg Kalnichevski
Revision Changes Path
No revision
No revision
1.2.2.6 +1 -3 jakarta-commons/httpclient/xdocs/tutorial.xml
Index: tutorial.xml
===================================================================
RCS file: /home/cvs/jakarta-commons/httpclient/xdocs/tutorial.xml,v
retrieving revision 1.2.2.5
retrieving revision 1.2.2.6
diff -u -r1.2.2.5 -r1.2.2.6
--- tutorial.xml 16 Sep 2004 06:23:01 -0000 1.2.2.5
+++ tutorial.xml 17 Sep 2004 19:50:47 -0000 1.2.2.6
@@ -227,7 +227,6 @@
if (statusCode != HttpStatus.SC_OK) {
System.err.println("Method failed: " + method.getStatusLine());
- System.exit(-2);
}
// Read the response body.
@@ -240,7 +239,6 @@
} catch (IOException e) {
System.err.println("Failed to download file.");
e.printStackTrace();
- System.exit(-1);
} finally {
// Release the connection.
method.releaseConnection();
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]