Hello,
TFPHTTPClient supports automatic redirection?
Please see Indy redirection:
http://stackoverflow.com/questions/4549809/indy-idhttp-how-to-handle-page-redirects
Thank you!

Mailing lists / lazarus / 2013-01
5 messages · 2 people ·
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Hello,
TFPHTTPClient supports automatic redirection?
Please see Indy redirection:
http://stackoverflow.com/questions/4549809/indy-idhttp-how-to-handle-page-redirects
Thank you!
No. But it should not be difficult to add.
Michael.
2013/1/22 Michael Van Canneyt
Very good! :)
I open an issue in the bugtracker?
ps. The two codes that implements redirection in Indy:
ConnectToHost - http://pastebin.com/kLJbinDp
ProcessResponse - http://pastebin.com/88frpEaX
It really seems to be easy to implement!
And will you append a patch implementing it ? :-)
ps. The two codes that implements redirection in Indy: ConnectToHost - http://pastebin.com/kLJbinDp
This has nothing to do with redirection ?
ProcessResponse - http://pastebin.com/88frpEaX
This does.
Michael.
2013/1/22 Michael Van Canneyt
Hehehe... I'll try it. I opened the issue (
http://bugs.freepascal.org/view.php?id=23727), but I'll send a patch soon.
No no... In this method have only a infinity loop (repeat ... until false), that calls the method with redirection. :)
ProcessResponse - http://pastebin.com/88frpEaX
Tonight I will try implementing it and send a patch. After that, I think that I'll retire the plugin HttpUtils(
https://github.com/silvioprog/httputils)/Synapse hehehe...