hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ortwin Glück <...@odi.ch>
Subject Re: What's wrong with this code
Date Mon, 09 Jan 2006 14:41:49 GMT
Francois,

Please submit a DEBUG level log. See 
http://jakarta.apache.org/commons/httpclient/logging.html

Cheers

Ortwin Glück

COURTAULT Francois wrote:
> Hello,
> 
> The second call to the getMethod fails. Do you know why ?
> 
>                     GetMethod getMethod = new GetMethod("/ind");
>                     final NameValuePair[] anvp = {new
> NameValuePair(WSCConstants.PARAM_xxx, x)};
>                     getMethod.setQueryString(anvp);
> 
>                     int statusCode =
> httpClient.executeMethod(getMethod);
>                     if (statusCode == HttpStatus.SC_OK) {
>                         putNumber =
> Integer.parseInt(getMethod.getResponseBodyAsString());
>                     }
> 
>                     getMethod.releaseConnection();
> 
> 	        // This second get never call the Tomcat Servlet  ??????
>                     getMethod = new GetMethod("/getputdataservlet");
>                     getMethod.setQueryString(anvp);
> 
> 
>                      statusCode = httpClient.executeMethod(getMethod);
>                      if (statusCode == HttpStatus.SC_OK) {
>                      }
> 	         getMethod.releaseConnection();
> 
> Regards.
> 

-- 
[web]  http://www.odi.ch/
[blog] http://www.odi.ch/weblog/
[pgp]  key 0x81CF3416
        finger print F2B1 B21F F056 D53E 5D79 A5AF 02BE 70F5 81CF 3416

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org


Mime
View raw message