Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2013-01

TFPHTTPClient: Redirection

5 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

silvioprog
to Michael Van Canneyt

2013/1/22 Michael Van Canneyt

Show quoted text 14 lines
On Tue, 22 Jan 2013, silvioprog wrote: > Hello, > TFPHTTPClient supports automatic redirection? > > Please see Indy redirection: > > http://stackoverflow.com/**questions/4549809/indy-idhttp-** > how-to-handle-page-redirects<http://stackoverflow.com/questions/4549809/indy-idhttp-how-to-handle-page-redirects> > No. But it should not be difficult to add. Michael.

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!

Silvio Cl?cio My public projects - github.com/silvioprog -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130122/585a7bb1/attachment.html>

Reply by email

Michael Van Canneyt
to silvioprog
silvioprog wrote 18 lines
2013/1/22 Michael Van Canneyt On Tue, 22 Jan 2013, silvioprog wrote: Hello, TFPHTTPClient supports automatic redirection? Please see Indy redirection: http://stackoverflow.com/questions/4549809/indy-idhttp-how-to-handle-page-redirects No. But it should not be difficult to add. Michael. Very good! :) I open an issue in the bugtracker?

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 ?

This does.

Michael.

Reply by email

silvioprog
to Michael Van Canneyt

2013/1/22 Michael Van Canneyt

Show quoted text 24 lines
On Tue, 22 Jan 2013, silvioprog wrote: > 2013/1/22 Michael Van Canneyt > On Tue, 22 Jan 2013, silvioprog wrote: > Hello, > TFPHTTPClient supports automatic redirection? > > Please see Indy redirection: > > http://stackoverflow.com/**questions/4549809/indy-idhttp-** > how-to-handle-page-redirects<http://stackoverflow.com/questions/4549809/indy-idhttp-how-to-handle-page-redirects> > > > No. But it should not be difficult to add. > > Michael. > > > Very good! :) > > I open an issue in the bugtracker? > And will you append a patch implementing it ? :-)

Hehehe... I'll try it. I opened the issue (
http://bugs.freepascal.org/view.php?id=23727), but I'll send a patch soon.

Show quoted text 8 lines
> ps. The two codes that implements redirection in Indy: > > ConnectToHost - http://pastebin.com/kLJbinDp > This has nothing to do with redirection ?

No no... In this method have only a infinity loop (repeat ... until false), that calls the method with redirection. :)

ProcessResponse - http://pastebin.com/88frpEaX

Show quoted text 7 lines
> This does. Michael.

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...

Silvio Cl?cio My public projects - github.com/silvioprog -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130122/565c01d6/attachment.html>

Reply by email