🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: TIdHTTP get redirect URL

#1511
From: Saulo I. Regis
Date: Mon, 29 Nov 2004 15:59
15 lines
1421 bytes
"Kalle" <Kalle@yahoo.com> escreveu na mensagem
news:41ab0d78@newsgroups.borland.com...
> Hi all,
>
> as TIdHTTP works very good with redirecting urls I like to know if i can
get
> the url where TIdHTTP redirect to. a function would be great, which return
> me the url or the new redirect url as needed.

TIdHTTP has the OnRedirect event and in the event handler the "dest"
parameter is the URL for the new resource location.

Take a look at Indy pdf documentation!

Saulo
Technical Details
Message-ID: <41ab486e@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!in.100proofnews.com!in.100proofnews.com!newsfeeds.ihug.co.nz!ihug.co.nz!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
Reply-To: "Saulo I. Regis" <saulo@password.info>
From: "Saulo I. Regis" <saulo@password.info>
Newsgroups: borland.public.cppbuilder.internet.web
References: <41ab0d78@newsgroups.borland.com>
Subject: Re: TIdHTTP get redirect URL
Date: Mon, 29 Nov 2004 13:59:24 -0200
Lines: 17
Organization: Password Informatica Ltda
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 200.215.24.7
Message-ID: <41ab486e@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1101744238 200.215.24.7 (29 Nov 2004 08:03:58 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!in.100proofnews.com!in.100proofnews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail