🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Logging in with TIdHTTP

#208
From: Tom Byars
Date: Tue, 03 Jul 2007 21:40
43 lines
2688 bytes
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message 
news:468a7aa6@newsgroups.borland.com...
>
> "Tom Byars" <tam118118@hotmail.com> wrote in message
> news:468a2b26$1@newsgroups.borland.com...
>
>> Someone using a TCppWebBrowser component tells me that
>> when you manually login on the home page the parameters for
>> the BeforeNavigate2 procedure have the following values
>
> Then you will have to add those additional values to your TStringList:
>
>    Login->Values["in_un"] = "username";
>    Login->Values["in_pw"] = "password";
>    Login->Values["process"] = "IN";
>    Login->Values["PARGS"] =
> "http://www.racingpost.co.uk/news/home.sd";
>
>
> Gambit
>
>
Remy, I tried

AnsiString S;
TStringList *Login=new TStringList;
TStringStream *Response=new TStringStream(S);
Login->Values["in_un"]="username";
Login->Values["in_pw"]="password";
Login->Values["process"]="IN";
Login->Values["PARGS"]="http%253A%252F%252Fwww.racingpost.co.uk%252Fnews%252Fhome.sd";
Betting->Post("http://www.racingpost.co.uk/news/home.sd",Login,Response);
S=Response->DataString;
delete Login;
delete Response;

but it doesn't work. Incidentally, I had to set 
Betting->InterceptEnabled=false as the program hung when the Betting->Put 
line was executed. I'm thinking that then makes the InterceptSSL component 
redundant which in turn makes me think there are properties in the component 
I've not set right (although I don't know what the properties mean and indy 
help is no help). 
Technical Details
Message-ID: <468ac25e$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <46878587@newsgroups.borland.com> <4689349a@newsgroups.borland.com> <468a2b26$1@newsgroups.borland.com> <468a7aa6@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,e38d4989d40bbffa
X-Google-Attributes: gidfeeec,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Tom Byars" <tam118118@hotmail.com>
Newsgroups: borland.public.cppbuilder.internet.web
References: <46878587@newsgroups.borland.com> <4689349a@newsgroups.borland.com> <468a2b26$1@newsgroups.borland.com> <468a7aa6@newsgroups.borland.com>
In-Reply-To: <468a7aa6@newsgroups.borland.com>
Subject: Re: Logging in with TIdHTTP
Date: Tue, 3 Jul 2007 22:40:47 +0100
Lines: 44
MIME-Version: 1.0
Content-Type: text/plain;
 format=flowed;
 charset="iso-8859-1";
 reply-type=original
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6000.16480
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6000.16480
NNTP-Posting-Host: 90.195.48.82
Message-ID: <468ac25e$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1183498846 90.195.48.82 (3 Jul 2007 14:40:46 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail