Thorsten, It has not been fixed yet. I have got the patch (below), but will not be able to commit it until I get home. The corporate firewall blocks SSH access, so I cannot commit while at work.
Expect the tutorial to be fixed by tomorrow morning Oleg Index: tutorial.xml =================================================================== RCS file: /home/cvspublic/jakarta-commons/httpclient/xdocs/tutorial.xml,v retrieving revision 1.2.2.2 diff -u -r1.2.2.2 tutorial.xml --- tutorial.xml 15 Feb 2004 14:16:28 -0000 1.2.2.2 +++ tutorial.xml 23 Feb 2004 16:06:31 -0000 @@ -208,11 +208,9 @@ // Create a method instance. HttpMethod method = new GetMethod(url); - // Execute the method. int statusCode = -1; - int attempt = 0; // We will retry up to 3 times. - while (statusCode == -1 && attempt < 3; attempt++) { + for (int attempt = 0; statusCode == -1 && attempt < 3; attempt++) { try { // execute the method. statusCode = client.executeMethod(method); -----Original Message----- From: Thorsten Scherler [mailto:[EMAIL PROTECTED] Sent: Monday, February 23, 2004 17:04 To: Commons HttpClient Project Subject: Re: ERROR in http://jakarta.apache.org/commons/httpclient/tutorial.html No problem, dude! Thx for fixing it so fast :). I think it was the for (int attempt = 0; statusCode == -1 && attempt < 3; attempt++) fault. Maybe you should choose only one (either *for* or *while*). ...but anywhere those thinks can happen ;-). King regards </thorsten> Kalnichevski, Oleg wrote: >My fault. Blindly copying stuff rarely helps. I'll correct the tutorial tonight. > >Oleg > >-----Original Message----- >From: Thorsten Scherler >[mailto:[EMAIL PROTECTED] >Sent: Monday, February 23, 2004 12:52 >To: [EMAIL PROTECTED] >Subject: ERROR in >http://jakarta.apache.org/commons/httpclient/tutorial.html > > >Hello group, >I tried the code of the tutorial page (Final Source Code) but there is a >small mistake: > > // We will retry up to 3 times. > while (statusCode == -1 && attempt < 3; attempt++) {... > >} > >Should be something like this: >while (statusCode == -1 && attempt < 3) { > attempt += 1; >... >} > >...or should I post a bug? > >-- >Thorsten Scherler > >Tfno: 955 062 627 >Email: [EMAIL PROTECTED] > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > >*************************************************************************************************** >The information in this email is confidential and may be legally privileged. Access >to this email by anyone other than the intended addressee is unauthorized. If you >are not the intended recipient of this message, any review, disclosure, copying, >distribution, retention, or any action taken or omitted to be taken in reliance on it >is prohibited and may be unlawful. If you are not the intended recipient, please >reply to or forward a copy of this message to the sender and delete the message, any >attachments, and any copies thereof from your system. >*************************************************************************************************** > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > > > -- Thorsten Scherler Tfno: 955 062 627 Email: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] *************************************************************************************************** The information in this email is confidential and may be legally privileged. Access to this email by anyone other than the intended addressee is unauthorized. If you are not the intended recipient of this message, any review, disclosure, copying, distribution, retention, or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. If you are not the intended recipient, please reply to or forward a copy of this message to the sender and delete the message, any attachments, and any copies thereof from your system. *************************************************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]