You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by Khong Fong Tze <fo...@eutama.com> on 2004/03/10 02:09:03 UTC
Status Code 302 Found
I have a web app which uses HttpClient to communicate with a third party server under HTTPS protocol. It is running fine in JRUN which uses JDK 1.3.1. The status code returned from the 3rd party host is 100.
I try to run the same web app in IBM JDK 1.31 SR6 or Sun JDK 1.41 or IBM JDK 1.41:-
statusCode = client.executeMethod(method) always returns me status code 302 Found.
The "Location" response header reads as this:-
"Location: https://xxx.xxx.xxx/?err_code=0&err_desc=No+Error2C+refer+to+status+code+for+detail&merchant_id=........"
Both environments are using the same version of HttpClient (2.0-alpha3-dev).
I wonder why the same web app would give different status code. What could be the causes?
Pls help! Thanks!
Regards,
Fong Tze
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org
Re: Status Code 302 Found
Posted by Michael Becke <be...@u.washington.edu>.
Hi Fong Tze,
2.0 alpha3 had some serious issues, especially related to 100-continue
handling. The final release of 2.0 is out and as such it is the only
supported version of HttpClient 2.0. I highly recommend upgrading.
Mike
On Mar 9, 2004, at 8:09 PM, Khong Fong Tze wrote:
> I have a web app which uses HttpClient to communicate with a third
> party server under HTTPS protocol. It is running fine in JRUN which
> uses JDK 1.3.1. The status code returned from the 3rd party host is
> 100.
>
>
> I try to run the same web app in IBM JDK 1.31 SR6 or Sun JDK 1.41 or
> IBM JDK 1.41:-
>
> statusCode = client.executeMethod(method) always returns me status
> code 302 Found.
>
> The "Location" response header reads as this:-
> "Location:
> https://xxx.xxx.xxx/?
> err_code=0&err_desc=No+Error2C+refer+to+status+code+for+detail&merchant
> _id=........"
>
>
> Both environments are using the same version of HttpClient
> (2.0-alpha3-dev).
>
> I wonder why the same web app would give different status code. What
> could be the causes?
>
> Pls help! Thanks!
>
>
> Regards,
> Fong Tze
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> commons-httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> commons-httpclient-dev-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org