mbecke 2003/09/01 10:06:10 Modified: httpclient/xdocs Tag: HTTPCLIENT_2_0_BRANCH tutorial.xml Log: Fixed a few typos. Submitted by: Ernst de Haan Revision Changes Path No revision No revision 1.2.2.1 +3 -4 jakarta-commons/httpclient/xdocs/tutorial.xml Index: tutorial.xml =================================================================== RCS file: /home/cvs/jakarta-commons/httpclient/xdocs/tutorial.xml,v retrieving revision 1.2 retrieving revision 1.2.2.1 diff -u -r1.2 -r1.2.2.1 --- tutorial.xml 11 Mar 2003 08:03:12 -0000 1.2 +++ tutorial.xml 1 Sep 2003 17:06:09 -0000 1.2.2.1 @@ -40,7 +40,7 @@ <li>Create an instance of one of the methods (GetMethod in this case). The URL to connect to is passed in to the the method constructor.</li> - <li>Tell <code>HttpClient</code> to execute the message.</li> + <li>Tell <code>HttpClient</code> to execute the method.</li> <li>Read the response.</li> <li>Release the connection.</li> <li>Deal with the response.</li> @@ -118,9 +118,8 @@ <source><![CDATA[ int statusCode = -1; - int attempt = 0; // We will retry up to 3 times. - while (statusCode == -1 && attempt < 3) { + for (int attempt = 0; statusCode == -1 && attempt < 3; attempt++) { try { // execute the method. statusCode = client.executeMethod(method);
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]