Return-Path: Delivered-To: apmail-jakarta-httpclient-user-archive@www.apache.org Received: (qmail 48419 invoked from network); 22 Dec 2005 08:12:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Dec 2005 08:12:52 -0000 Received: (qmail 8713 invoked by uid 500); 22 Dec 2005 08:12:50 -0000 Delivered-To: apmail-jakarta-httpclient-user-archive@jakarta.apache.org Received: (qmail 8697 invoked by uid 500); 22 Dec 2005 08:12:50 -0000 Mailing-List: contact httpclient-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: "HttpClient User Discussion" Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-user@jakarta.apache.org Received: (qmail 8686 invoked by uid 99); 22 Dec 2005 08:12:50 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Dec 2005 00:12:50 -0800 X-ASF-Spam-Status: No, hits=2.1 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_IMAGE_ONLY_16,HTML_MESSAGE,HTML_SHORT_LINK_IMG_2,MSGID_FROM_MTA_HEADER X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [203.199.83.119] (HELO rediffmail.com) (203.199.83.119) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 22 Dec 2005 00:12:48 -0800 Received: (qmail 13572 invoked by uid 510); 22 Dec 2005 00:55:14 -0000 Date: 22 Dec 2005 00:55:14 -0000 Message-ID: <20051222005514.13571.qmail@webmail67.rediffmail.com> Received: from unknown (203.31.24.51) by rediffmail.com via HTTP; 22 dec 2005 00:55:14 -0000 MIME-Version: 1.0 From: "bharathi swarajya" Reply-To: "bharathi swarajya" To: "HttpClient User Discussion" Cc: "Roland Weber" Subject: Retrying mechanism for reading from HTTPClient Content-type: multipart/alternative; boundary="Next_1135212914---0-203.199.83.119-13569" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --Next_1135212914---0-203.199.83.119-13569 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi,=0A=0AI would like to have some information on how to do the following. = I am planning to use HttpClient to send a request to a system which reads f= rom HttpClient. And then later it sends back a response to the same client.= My application might send multiple requests to the System at the other end= , I should have a mechanism of retry to read the response. So my problems a= re=0A=0A1)How to I incorporate the retry mechanism. And I dont want the app= lication to keep on trying to read the request. How do I do that using Http= Client. After some time the application should get a timeout response if it= s not able to read the response.=0A=0A2)If I send multiple requests at the = same time from my application and try to read response, how can I find out = the response for the request sent. How to I need to to do it. Does HttpClie= nt internally handle it or do I need to do it at a code level.=0A=0A=0ACoul= d any one help me in this regard. Just let me know if any other method is t= here to do this.=0A=0A=0A=0A=0AThanks & Regards=0AS.S. Bharathi --Next_1135212914---0-203.199.83.119-13569--