🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: TIdHTTP Get and OnRedirect (Indy 8)

#252
From: Eduardo Jauch
Date: Tue, 06 Feb 2007 22:29
32 lines
1931 bytes
Eduardo Jauch escreveu:
> I have this code:
> 
> void __fastcall TForm1::Button1Click(TObject *Sender)
> {
>   AnsiString string = 
> http->Get("http://www.visto-eua.com.br/agendamento-web/login?redirect=/agenciadores.do&locale=pt_BR&com.telecom.tipo_usuario=INTERNET"); 
> 
>   Memo1->Text = string;
> }
> //--------------------------------------------------------------------------- 
> 
> 
> void __fastcall TForm1::httpRedirect(TObject *Sender, AnsiString &dest,
>       int &NumRedirect, bool &Handled)
> {
>   Handled = true;
>   return;
> }
> 
> 
> When I put the link on the browser, i can susseful see the redirected page.
> 
> How can I get this with the Indy? (I use indy 8 shiped with Borland )
> What am I doing wrong?
> 
> Thanks! :)


The problem is that whe i try this code, what I get is the page that i 
get if i pass the wrong password... But the login and pass (not provided 
here) are ok and work in the browse...
Technical Details
Message-ID: <45c8fdaa$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns13feed!worldnet.att.net!64.192.187.27!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <45c8f8fc@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,dc1b41359087c79
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Tue, 06 Feb 2007 20:29:03 -0200
From: Eduardo Jauch <eduardo.jauch@gmail.com>
User-Agent: Thunderbird 1.5.0.9 (Windows/20061207)
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internet.web
Subject: Re: TIdHTTP Get and OnRedirect (Indy 8)
References: <45c8f8fc@newsgroups.borland.com>
In-Reply-To: <45c8f8fc@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 201.24.207.197
Message-ID: <45c8fdaa$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1170800042 201.24.207.197 (6 Feb 2007 14:14:02 -0800)
Lines: 32
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns13feed!worldnet.att.net!64.192.187.27!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail