Board index » delphi » Idhttp problem with redirection

Idhttp problem with redirection


2003-12-31 10:32:41 PM
delphi37
Hi,all.
I'm writing a program self-navigating to a web site.
Using idhttp (indy 9 and D7) I am getting a 302 error on the third page i
open.Ok so i set handle.redirect:= true and no more 302 error but now error
404 page not found !!! Obviously if a navigate with InternetExplorer
everything is fine.
I tried to look on google but didn't find any workaround.Anyone had this
problem before and solved it?
I use Indy components because they allow https web site download, so no
Piette's Ics components that,btw, work better than Indy without any error
302.
Thanks.
 
 

Re:Idhttp problem with redirection

I have the same problem. Need urgent help!
I have a self-navigating program (Delphi 7, Indy 9) installed on
client machines for a few months, using idhttp. The program was
working without any problem.
A domain url redirection was made a few days ago, the place where the
web pages are hosted has changed.
Since that time, clients using a proxy cannot log in my application
(different clients and different proxies).
But some clients (no proxy) are working fine.
- In IE no problem.
- with this url to see the header content all seems OK ?
www.web-caching.com/showheaders.html
On a client machine with proxy :
- with idHTTP handleRequest:=false I get error 302
- with idHTTP handleRequest:=true I get error 404 AND an exception
(same problem in Indy 8.0 component?)
On my machine (no proxy) all is fine.
the url is www.feed-alliance.fr
So, does anyone has some explanation ?
Why is there difference with proxy and without?
Something missing in request header?
Who is sending 302 message? server, proxy?
Thank you for your help
"robert0" <XXXX@XXXXX.COM>writes news:<d6BIb.222797$XXXX@XXXXX.COM>...
Quote
Hi,all.
I'm writing a program self-navigating to a web site.
Using idhttp (indy 9 and D7) I am getting a 302 error on the third page i
open.Ok so i set handle.redirect:= true and no more 302 error but now error
404 page not found !!! Obviously if a navigate with InternetExplorer
everything is fine.
I tried to look on google but didn't find any workaround.Anyone had this
problem before and solved it?
I use Indy components because they allow https web site download, so no
Piette's Ics components that,btw, work better than Indy without any error
302.
Thanks.