Re: [twsocket] Bad http redirection
I think this is the expected behaviour. You can disable automatic relocation (FollowRelocation property) or use the location change event to know your request has been redirected. I don't think so. I get a 302 status code but in that case it doesn't mean that what I'm asking for is moved to a different url, but is a trick of the provider to tell the user that the domain is wrong. Practically I get a 302 and then a 200 (if the redirection is followed) instead a 404. I understand, but as far as the HTTP component is concerned, it is the expected behaviour. The problems is at the provider. His trick is designed for a human, not a program. -- francois.pie...@overbyte.be Author of ICS (Internet Component Suite, freeware) Author of MidWare (Multi-tier framework, freeware) http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] Bad http redirection
Scrive Francois Piette francois.pie...@skynet.be: [...] I understand, but as far as the HTTP component is concerned, it is the expected behaviour. The problems is at the provider. His trick is designed for a human, not a program. Yes, I know. I'm only asking because this service seems to become more common, and maybe there is some standard (for example a specific header) to know that it is not a normal redirect. But examining it they are not. To disable this feature I must explicit exchange the primary dns with the secondary. Since I cannot change it on the router, I should disable the dhcp on every pc :-( Bye, Maurizio. This mail has been sent using Alpikom webmail system http://www.alpikom.it -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] Bad http redirection
Scrive Maurizio Lotauro lotauro.mauri...@dnet.it: On the same pc using a virtual machine (XPpro SP3) this (the redirection to my provider) doesn't happen. It is strange, isn't it? Ignore this sentence, it works in the VM exactly the same way. Bye, Maurizio. This mail has been sent using Alpikom webmail system http://www.alpikom.it -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] Bad http redirection
Scrive Francois PIETTE francois.pie...@skynet.be: Hello, I think this is the expected behaviour. You can disable automatic relocation (FollowRelocation property) or use the location change event to know your request has been redirected. I don't think so. I get a 302 status code but in that case it doesn't mean that what I'm asking for is moved to a different url, but is a trick of the provider to tell the user that the domain is wrong. Practically I get a 302 and then a 200 (if the redirection is followed) instead a 404. This happen if I ask for example http://www.wrongdomain.net If I ask for http://www.wrongdomain.net/adocuemtn.htm I get a 200 and the content is: The requested URL was not found :-( Bye, Maurizio. This mail has been sent using Alpikom webmail system http://www.alpikom.it -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] Bad http redirection
Hello, I think this is the expected behaviour. You can disable automatic relocation (FollowRelocation property) or use the location change event to know your request has been redirected. -- francois.pie...@overbyte.be The author of the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (ICS) http://www.overbyte.be - Original Message - From: Maurizio Lotauro lotauro.mauri...@dnet.it To: ICS support mailing twsocket@elists.org Sent: Sunday, February 15, 2009 3:16 AM Subject: [twsocket] Bad http redirection Hello, today I discovered a potential serious problem. In my system (Vista HP SP1) when I try to get a wrong url I get a page from my provider with some suggestions of corrected link. When I do this with HttpCli I see that the first request get a 302 and then automatically retry using the redirection link. At this point it get the page from my provider and the status code is 200. So what happen is that I request something but I get a something else, and I'm not able to know that because the status code is 200. What do you think? On the same pc using a virtual machine (XPpro SP3) this (the redirection to my provider) doesn't happen. It is strange, isn't it? Bye, Maurizio. This mail has been sent using Alpikom webmail system http://www.alpikom.it -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be