Re: Status Code 302 Found
Hi, Thanks for reply. I upgraded HttpClient to version 2.0. However, it doesn't make a difference. I am still having the status code 302 Found returned from the 3rd party host. Any other suggestions? Regards, Fong Tze 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=0err_desc=No+Error2C+refer+to+status+code+for+detailmerchant _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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Status Code 302 Found
Fong Tze, Take a look at the following document. I should give you enough material to be able to tackle the problem http://jakarta.apache.org/commons/httpclient/redirects.html Oleg On Wed, 2004-03-10 at 11:54, Khong Fong Tze wrote: Hi, Thanks for reply. I upgraded HttpClient to version 2.0. However, it doesn't make a difference. I am still having the status code 302 Found returned from the 3rd party host. Any other suggestions? Regards, Fong Tze 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=0err_desc=No+Error2C+refer+to+status+code+for+detailmerchant _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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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=0err_desc=No+Error2C+refer+to+status+code+for+detailmerchant_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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Status Code 302 Found
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=0err_desc=No+Error2C+refer+to+status+code+for+detailmerchant _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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]