🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.web
Article #1512

Re: TIdHTTP get redirect URL

#1512
From: Remy Lebeau (TeamB)
Date: Mon, 29 Nov 2004 17:48
17 lines
1575 bytes
"Kalle" <Kalle@yahoo.com> wrote in message
news:41ab0d78@newsgroups.borland.com...

> as TIdHTTP works very good with redirecting urls I like
> to know if i can get the url where TIdHTTP redirect to.

Use the OnRedirect event for that.  The VLocation parameter will be the new
URL being redirected to.

> a function would be great, which return me the url or the
> new redirect url as needed.

The TIdHTTP.Request.Location property is updated with the new URL as well.


Gambit
Technical Details
Message-ID: <41ab604d$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsread.com!newsprint.newsread.com!newsfeed00.sul.t-online.de!t-online.de!news.zanker.org!feeder1.cambrium.nl!feeder2.cambrium.nl!news.cambrium.nl!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <41ab0d78@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,8f289503fe119edf
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.web
References: <41ab0d78@newsgroups.borland.com>
Subject: Re: TIdHTTP get redirect URL
Date: Mon, 29 Nov 2004 09:48:09 -0800
Lines: 19
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <41ab604d$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1101750349 68.69.17.41 (29 Nov 2004 09:45:49 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsread.com!newsprint.newsread.com!newsfeed00.sul.t-online.de!t-online.de!news.zanker.org!feeder1.cambrium.nl!feeder2.cambrium.nl!news.cambrium.nl!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail