Re: HTTP 302 Console output handle question

2004-05-11 Thread Ortwin Glück
Mahamood, Saad (SD) wrote: org.apache.commons.httpclient.HttpException: Redirect from host www.bgis.gov.bb to www.barbados.gov.bb is not supported WARNING: Invalid Redirect URI from: http://www.bgis.gov.bb:80/ to: http://www.barbados.gov.bb/bgis.htm My question is, how do I get a handle on this

HTTP 302 Console output handle question

2004-05-11 Thread Mahamood, Saad (SD)
Hello all! I'm currently developing an application that uses the HTTPClient library. I've found that whilst using it to return the status codes of URI's that when it encouters a 302 return code it also gives out additional information on the console as well: 10-Ma

DO NOT REPLY [Bug 21216] - Redirect 302 to the same URL causes max redirects exception

2004-04-12 Thread bugzilla
gzilla/show_bug.cgi?id=21216 Redirect 302 to the same URL causes max redirects exception [EMAIL PROTECTED] changed: What|Removed |Added Status|ASSIGNED|RE

DO NOT REPLY [Bug 21216] - Redirect 302 to the same URL causes max redirects exception

2004-04-11 Thread bugzilla
gzilla/show_bug.cgi?id=21216 Redirect 302 to the same URL causes max redirects exception --- Additional Comments From [EMAIL PROTECTED] 2004-04-11 21:21 --- Very nice, looks good to me. I have only one very minor suggestion. I would rename CIRCULAR_REDIRECTS to ALLOW_CIRCULAR_REDIRECTS, j

DO NOT REPLY [Bug 21216] - Redirect 302 to the same URL causes max redirects exception

2004-04-10 Thread bugzilla
gzilla/show_bug.cgi?id=21216 Redirect 302 to the same URL causes max redirects exception [EMAIL PROTECTED] changed: What|Removed |Added Status|REOPENED|AS

DO NOT REPLY [Bug 21216] - Redirect 302 to the same URL causes max redirects exception

2004-04-10 Thread bugzilla
gzilla/show_bug.cgi?id=21216 Redirect 302 to the same URL causes max redirects exception --- Additional Comments From [EMAIL PROTECTED] 2004-04-10 15:34 --- Created an attachment (id=11207) Patch (take 1) - To unsubscribe,

Re: Status Code 302 Found

2004-03-10 Thread Oleg Kalnichevski
Client 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

Re: Status Code 302 Found

2004-03-10 Thread Khong Fong Tze
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 issu

Re: Status Code 302 Found

2004-03-09 Thread Michael Becke
:- 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 a

Status Code 302 Found

2004-03-09 Thread Khong Fong Tze
:- 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 env

[Fwd: Re: Once again 302 :(]

2004-03-04 Thread Thorsten Scherler
--- Begin Message --- Michael Becke wrote: Hi Thorsten, Not sure what's happening here. I'm trying under RedHat and all is well. I installed the log4j and traced down the problem: You said for you is working fine! My local maschine (windows) as well is working fine with both addresses! ...but

Re: Once again 302 :(

2004-03-02 Thread Thorsten Scherler
Michael Becke wrote: Hi Thorsten, Not sure what's happening here. I'm trying under RedHat and all is well. I installed the log4j and traced down the problem: You said for you is working fine! My local maschine (windows) as well is working fine with both addresses! ...but the server is in a dif

Re: Once again 302 :(

2004-03-02 Thread Thorsten Scherler
Andre John Mas wrote: I am not really in a position to test the code, but could you see whether changing the value of the 'user-agent' header gives: method.setRequestHeader("user-agent", "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113"); or method.setRequest

[Fwd: Re: Once again 302 :(]

2004-03-02 Thread Thorsten Scherler
--- Begin Message --- Michael Becke wrote: Hi Thorsten, Not sure what's happening here. I'm trying under RedHat and all is well. I installed the log4j and traced down the problem: You said for you is working fine! My local maschine (windows) as well is working fine with both addresses! ...but

Re: Once again 302 :(

2004-03-02 Thread Thorsten Scherler
Michael Becke wrote: Hi Thorsten, Not sure what's happening here. I'm trying under RedHat and all is well. I installed the log4j and traced down the problem: You said for you is working fine! My local maschine (windows) as well is working fine with both addresses! ...but the server is in a dif

Re: Once again 302 :(

2004-03-02 Thread Thorsten Scherler
Michael Becke wrote: Hi Thorsten, Not sure what's happening here. I'm trying under RedHat and all is well. Please post the error stack trace as well as a wire log of the problem . This will help to narrow down the problem. Mike I

Re: Once again 302 :(

2004-03-02 Thread Thorsten Scherler
Andre John Mas wrote: I am not really in a position to test the code, but could you see whether changing the value of the 'user-agent' header gives: method.setRequestHeader("user-agent", "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113"); or method.setRequest

Re: Once again 302 :(

2004-03-01 Thread Michael Becke
Hi Thorsten, Not sure what's happening here. I'm trying under RedHat and all is well. Please post the error stack trace as well as a wire log of the problem . This will help to narrow down the problem. Mike On Mar 1, 2004, at 9:20

Re: Once again 302 :(

2004-03-01 Thread Andre John Mas
Emre. ...but this time the problem depends on the plattform I am on. I am a little bit confused because it is running fine on win but on linux not. Site causing the problem: andaluciajunta.es Windows: I get 302! Linux (debian): org.apache.commons.httpclient.HttpConnection$ConnectionTimeoutExcep

Re: Once again 302 :(

2004-03-01 Thread Thorsten Scherler
Site causing the problem: andaluciajunta.es When I ask for www.andaluciajunta.es. I get an IO Exception. -- "Erare humanum est", Seneca Thorsten Scherler Tfno: 955 062 627 Email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EM

Once again 302 :(

2004-03-01 Thread Thorsten Scherler
Hello group, I have a similar problem like Emre. ...but this time the problem depends on the plattform I am on. I am a little bit confused because it is running fine on win but on linux not. Site causing the problem: andaluciajunta.es Windows: I get 302! Linux (debian

Re: 302!!

2004-03-01 Thread Emre SOKULLU
Thanks Sam Berlin, I've solved the problem. My (stupid) mistake was that I was calling getResponseHeaders("location") method before executing the HttpClient. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

RE: 302 !!

2004-02-28 Thread Sam Berlin
MAIL PROTECTED] Sent: Saturday, February 28, 2004 5:43 AM To: Commons HttpClient Project Subject: Re: 302 !! Thanx Oleg for your reply, Yes I've already tried what is written on "Redirects Tutorial page". But the fact is that, the following procedure does not work for me : He

Re: 302 !!

2004-02-28 Thread Oleg Kalnichevski
ur time, but it sounds like a bug to me > > Thanx for your help.. > > > > > > > > > > - Original Message - > From: "Kalnichevski, Oleg" <[EMAIL PROTECTED]> > To: "Commons HttpClient Project" <[EMAIL PROTECTED]&

Re: 302 !!

2004-02-28 Thread Emre Sokullu
The only code change I've made in HttpMethodBase class was the one I've given to you previously, and setting the field MAX_FORWARDS 10. I've changed it to its default value 100 and tried again. Still no change... - To unsubscribe

Re: 302 !!

2004-02-28 Thread Emre Sokullu
bug to me Thanx for your help.. - Original Message - From: "Kalnichevski, Oleg" <[EMAIL PROTECTED]> To: "Commons HttpClient Project" <[EMAIL PROTECTED]> Sent: Friday, February 27, 2004 7:45 PM Subject: RE: 302 !! > org.apache.commons.httpcl

RE: 302 !!

2004-02-27 Thread Kalnichevski, Oleg
[EMAIL PROTECTED] Sent: Friday, February 27, 2004 18:26 To: Commons HttpClient Project Subject: 302 !! Hi all, I still couldn't solve my problem with http status 302 : When I try to connect Google, it redirects me to the local page : http://www.google.com.tr At this status, I want to catch the

302 !!

2004-02-27 Thread Emre Sokullu
Also, this does not happen only with Google, it does happen with every redirected page, even with one that i have created by myself, using php (not javascript) for redirecting. - To unsubscribe, e-mail: [EMAIL PROTECTED] For add

302 !!

2004-02-27 Thread Emre Sokullu
Hi all, I still couldn't solve my problem with http status 302 : When I try to connect Google, it redirects me to the local page : http://www.google.com.tr At this status, I want to catch the new address and try to reconnect but such a failure occurs : 27.Ìub.2004 17:

Re: 302

2004-02-23 Thread Emre Sokullu
Well yes: http://www.google.com it's redirecting Turkish IPs to http://www.google.com.tr And not just google, every URL, even one that I have created the header information by myself using php - To unsubscribe, e-mail: [EMAIL

302

2004-02-23 Thread Emre Sokullu
Hi, I think there is a problem with header "location" : When a URL returns 302 as http status code, the location header of this URL is still a null value. Even if it is a well-known redirected site : Can you inform me about this issue? Am I wrong? I use the code proposed on the official site.

Re: 302

2004-02-23 Thread Adrian Sutton
On 23/2/04 2:40 PM, "Emre Sokullu" <[EMAIL PROTECTED]> wrote: > Hi, I think there is a problem with header "location" : > > When a URL returns 302 as http status code, the location header of this URL > is still a null value. Even if it is a well-known re

302

2004-02-23 Thread Emre Sokullu
Hi, I think there is a problem with header "location" : When a URL returns 302 as http status code, the location header of this URL is still a null value. Even if it is a well-known redirected site : Can you inform me about this issue? Am I wrong? I use the code proposed on the off

Re: Hi all,302

2004-02-22 Thread Oleg Kalnichevski
Emre, Have a look at this document http://jakarta.apache.org/commons/httpclient/redirects.html Oleg On Sun, 2004-02-22 at 06:08, Emre Sokullu wrote: > Hi all, > > When a client request return https status code 302; HttpClient, instead of > following the document, shows an info

Hi all,302

2004-02-21 Thread Emre Sokullu
Hi all, When a client request return https status code 302; HttpClient, instead of following the document, shows an informative page. How can I deal with this, and show directly the page. Ideas, suggestions?? - To

DO NOT REPLY [Bug 22667] - infinite loop on 302 redirect with different host in Location: header

2003-09-03 Thread bugzilla
gzilla/show_bug.cgi?id=22667 infinite loop on 302 redirect with different host in Location: header [EMAIL PROTECTED] changed: What|Removed |Added Stat

DO NOT REPLY [Bug 22667] - infinite loop on 302 redirect with different host in Location: header

2003-09-02 Thread bugzilla
gzilla/show_bug.cgi?id=22667 infinite loop on 302 redirect with different host in Location: header --- Additional Comments From [EMAIL PROTECTED] 2003-09-02 23:51 --- Hi Brent, Sorry for being a little dense. You are quite right. I will post a patch+test in a few minutes. Thanks,

DO NOT REPLY [Bug 22667] - infinite loop on 302 redirect with different host in Location: header

2003-09-02 Thread bugzilla
gzilla/show_bug.cgi?id=22667 infinite loop on 302 redirect with different host in Location: header --- Additional Comments From [EMAIL PROTECTED] 2003-09-02 23:22 --- Hi Mike, Should also add that in your log as well it does not actually switch hosts as it should because o

DO NOT REPLY [Bug 22667] - infinite loop on 302 redirect with different host in Location: header

2003-09-02 Thread bugzilla
gzilla/show_bug.cgi?id=22667 infinite loop on 302 redirect with different host in Location: header --- Additional Comments From [EMAIL PROTECTED] 2003-09-02 23:19 --- Hi Mike, Your log still contains the same problem as mine: HttpMethodBase - -Request to add Host header ignored: header a

DO NOT REPLY [Bug 22667] - infinite loop on 302 redirect with different host in Location: header

2003-09-02 Thread bugzilla
gzilla/show_bug.cgi?id=22667 infinite loop on 302 redirect with different host in Location: header --- Additional Comments From [EMAIL PROTECTED] 2003-09-02 22:55 --- Created an attachment (id=8044) successful wire log --

DO NOT REPLY [Bug 22667] - infinite loop on 302 redirect with different host in Location: header

2003-09-02 Thread bugzilla
gzilla/show_bug.cgi?id=22667 infinite loop on 302 redirect with different host in Location: header --- Additional Comments From [EMAIL PROTECTED] 2003-09-02 22:55 --- Hi Brent, Your example code looks quite like the code I tried. Just to be sure though I tried yours. My results were th

DO NOT REPLY [Bug 22667] - infinite loop on 302 redirect with different host in Location: header

2003-09-02 Thread bugzilla
gzilla/show_bug.cgi?id=22667 infinite loop on 302 redirect with different host in Location: header --- Additional Comments From [EMAIL PROTECTED] 2003-09-02 18:34 --- In the wire log it says 2.1m1 for the version - I just grabbed the latest from CVS and tried it and it still does the in

DO NOT REPLY [Bug 22667] - infinite loop on 302 redirect with different host in Location: header

2003-09-02 Thread bugzilla
gzilla/show_bug.cgi?id=22667 infinite loop on 302 redirect with different host in Location: header --- Additional Comments From [EMAIL PROTECTED] 2003-09-02 18:28 --- Created an attachment (id=8035) test client java app demonstrating infinit

DO NOT REPLY [Bug 22667] - infinite loop on 302 redirect with different host in Location: header

2003-09-02 Thread bugzilla
gzilla/show_bug.cgi?id=22667 infinite loop on 302 redirect with different host in Location: header --- Additional Comments From [EMAIL PROTECTED] 2003-09-02 18:31 --- Created an attachment (id=8036) infinte loop wire log from the te

DO NOT REPLY [Bug 22667] - infinite loop on 302 redirect with different host in Location: header

2003-08-24 Thread bugzilla
gzilla/show_bug.cgi?id=22667 infinite loop on 302 redirect with different host in Location: header --- Additional Comments From [EMAIL PROTECTED] 2003-08-23 15:10 --- Hi Brent, I tried doing a GET on <http://www.snowcrest.net/mice/mice.htm> using the latest from CVS HTTPCLIENT_2_

DO NOT REPLY [Bug 22667] - infinite loop on 302 redirect with different host in Location: header

2003-08-23 Thread bugzilla
gzilla/show_bug.cgi?id=22667 infinite loop on 302 redirect with different host in Location: header [EMAIL PROTECTED] changed: What|Removed |Added Version|unspecified

DO NOT REPLY [Bug 22667] New: - infinite loop on 302 redirect with different host in Location: header

2003-08-22 Thread bugzilla
gzilla/show_bug.cgi?id=22667 infinite loop on 302 redirect with different host in Location: header Summary: infinite loop on 302 redirect with different host in Location: header Product: Commons Version: unspecified Platform: All

DO NOT REPLY [Bug 21216] - Redirect 302 to the same URL causes max redirects exception

2003-07-01 Thread bugzilla
gzilla/show_bug.cgi?id=21216 Redirect 302 to the same URL causes max redirects exception --- Additional Comments From [EMAIL PROTECTED] 2003-07-01 19:45 --- Okay gentlemen. You are essentially both correct. HttpClient currently works for this case (i.e. does not loop forever and warns th

DO NOT REPLY [Bug 21216] - Redirect 302 to the same URL causes max redirects exception

2003-07-01 Thread bugzilla
gzilla/show_bug.cgi?id=21216 Redirect 302 to the same URL causes max redirects exception --- Additional Comments From [EMAIL PROTECTED] 2003-07-01 18:55 --- HttpClient does detect and does avoid infinite redirection loops in its present implementation. In the 2.1 release it may optionally

DO NOT REPLY [Bug 21216] - Redirect 302 to the same URL causes max redirects exception

2003-07-01 Thread bugzilla
gzilla/show_bug.cgi?id=21216 Redirect 302 to the same URL causes max redirects exception --- Additional Comments From [EMAIL PROTECTED] 2003-07-01 18:38 --- >The spec states that an HTTP agent should avoid infinite loops, >which is not the same thing as circular redirects in my opin

DO NOT REPLY [Bug 21216] - Redirect 302 to the same URL causes max redirects exception

2003-07-01 Thread bugzilla
gzilla/show_bug.cgi?id=21216 Redirect 302 to the same URL causes max redirects exception --- Additional Comments From [EMAIL PROTECTED] 2003-07-01 18:02 --- I respectfully disagree with your interpretation even though in most of the cases it corresponds to what the majority of users may exp

DO NOT REPLY [Bug 21216] - Redirect 302 to the same URL causes max redirects exception

2003-07-01 Thread bugzilla
gzilla/show_bug.cgi?id=21216 Redirect 302 to the same URL causes max redirects exception --- Additional Comments From [EMAIL PROTECTED] 2003-07-01 17:41 --- ok, heres the quote from section 10.3 in RFC 2616: "A client SHOULD detect infinite redirection loops, since such loops gener

DO NOT REPLY [Bug 21216] - Redirect 302 to the same URL causes max redirects exception

2003-07-01 Thread bugzilla
gzilla/show_bug.cgi?id=21216 Redirect 302 to the same URL causes max redirects exception --- Additional Comments From [EMAIL PROTECTED] 2003-07-01 17:04 --- Christian, Can you show me where in the RFC it is stated that redirects to the same location are not allowed? In my humble opinion, mu

DO NOT REPLY [Bug 21216] - Redirect 302 to the same URL causes max redirects exception

2003-07-01 Thread bugzilla
gzilla/show_bug.cgi?id=21216 Redirect 302 to the same URL causes max redirects exception --- Additional Comments From [EMAIL PROTECTED] 2003-07-01 16:40 --- there is a difference between limiting the number of redirects and preventing circular redirects. If I do the latter, a redirect to

DO NOT REPLY [Bug 21216] - Redirect 302 to the same URL causes max redirects exception

2003-07-01 Thread bugzilla
gzilla/show_bug.cgi?id=21216 Redirect 302 to the same URL causes max redirects exception --- Additional Comments From [EMAIL PROTECTED] 2003-07-01 15:11 --- HttpClient DOES prevent circular redirects by keeping a max count on allowed automatic redirects. The question is whether HttpClient

DO NOT REPLY [Bug 21216] - Redirect 302 to the same URL causes max redirects exception

2003-07-01 Thread bugzilla
gzilla/show_bug.cgi?id=21216 Redirect 302 to the same URL causes max redirects exception --- Additional Comments From [EMAIL PROTECTED] 2003-07-01 14:57 --- the spec does mention that a client SHOULD detect and prevent circular red

DO NOT REPLY [Bug 21216] - Redirect 302 to the same URL causes max redirects exception

2003-07-01 Thread bugzilla
gzilla/show_bug.cgi?id=21216 Redirect 302 to the same URL causes max redirects exception [EMAIL PROTECTED] changed: What|Removed |Added Status|RESOLVED|RE

DO NOT REPLY [Bug 21216] - httpclient follows 302 with empty link up to max redirects

2003-07-01 Thread bugzilla
gzilla/show_bug.cgi?id=21216 httpclient follows 302 with empty link up to max redirects --- Additional Comments From [EMAIL PROTECTED] 2003-07-01 13:33 --- I see it differently although not strongly enough to pursue it. I see an opportunity to prevent httpclient from doing something that d

DO NOT REPLY [Bug 21216] - httpclient follows 302 with empty link up to max redirects

2003-07-01 Thread bugzilla
gzilla/show_bug.cgi?id=21216 httpclient follows 302 with empty link up to max redirects [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RE

DO NOT REPLY [Bug 21216] - httpclient follows 302 with empty link up to max redirects

2003-07-01 Thread bugzilla
gzilla/show_bug.cgi?id=21216 httpclient follows 302 with empty link up to max redirects --- Additional Comments From [EMAIL PROTECTED] 2003-07-01 12:35 --- Ok, I was using the link in the HTML content. Is it possible to have httpclient not follow a redirect when the redirect is the same

DO NOT REPLY [Bug 21216] - httpclient follows 302 with empty link up to max redirects

2003-07-01 Thread bugzilla
gzilla/show_bug.cgi?id=21216 httpclient follows 302 with empty link up to max redirects --- Additional Comments From [EMAIL PROTECTED] 2003-07-01 12:32 --- HttpClient does not look at the HTML content. It uses the location header as per the RFC. It seems that this site redirects to

DO NOT REPLY [Bug 21216] - httpclient follows 302 with empty link up to max redirects

2003-07-01 Thread bugzilla
gzilla/show_bug.cgi?id=21216 httpclient follows 302 with empty link up to max redirects --- Additional Comments From [EMAIL PROTECTED] 2003-07-01 12:29 --- Michael, I can't reproduce the problem with the current CVS snapshot. What version of HttpClient are you using? Make sure it is at

DO NOT REPLY [Bug 21216] New: - httpclient follows 302 with empty link up to max redirects

2003-07-01 Thread bugzilla
gzilla/show_bug.cgi?id=21216 httpclient follows 302 with empty link up to max redirects Summary: httpclient follows 302 with empty link up to max redirects Product: Commons Version: Nightly Builds Platform: PC OS/Version: Windows

Re: Status of bug FollowRedirects 302

2003-06-11 Thread Ortwin Glück
work around by handling 302 codes yourself. I appreciate your interest and will to contribute. But do not waste your time on this particular issue currently. Odi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Status of bug FollowRedirects 302

2003-06-11 Thread Michael Mattox
I'm curious if this is being worked on? I just switched over to Apache's HttpClient from SUN's (full of bugs) and I notice that many websites such as msnbc.com and google.com return a 302 for queries for their homepages. If no one is currently working on this I'd be interes