Article View: borland.public.cppbuilder.internet.web
Article #210Re: Logging in with TIdHTTP
From: Tom Byars
Date: Wed, 04 Jul 2007 10:40
Date: Wed, 04 Jul 2007 10:40
28 lines
2270 bytes
2270 bytes
Apologies Remy. I misunderstood you. Thanks for the explanation.
I tried the following
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://www.racingpost.co.uk/news/home.sd";
Betting->InterceptEnabled=true;
Betting->Post("https://reg.racingpost.co.uk/cde/login_iframe.sd",Login,Response);
S=Response->DataString;
delete Login;
delete Response;
If I then attempt the Betting->Get then, after a long pause, I get an
exception "EIdOSSLConnectError with message 'Error connecting with SSL'".
If I first set
Betting->InterceptEnabled=false;
and then attempt the Betting->Get, the html returned is for the page that
states "This section now requires you to have Registered and Logged In" etc.
I've just used the default values for the InterceptSSL component. I tried
various values for the InterceptSSL Mode property, but nothing seemed to
change. Can you think of anything I've missed?
Technical Details
Message-ID:
<468b7929$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<46878587@newsgroups.borland.com> <4689349a@newsgroups.borland.com> <468a2b26$1@newsgroups.borland.com> <468a7aa6@newsgroups.borland.com> <468ac25e$1@newsgroups.borland.com> <468b039a$1@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> <468ac25e$1@newsgroups.borland.com> <468b039a$1@newsgroups.borland.com> In-Reply-To: <468b039a$1@newsgroups.borland.com> Subject: Re: Logging in with TIdHTTP Date: Wed, 4 Jul 2007 11:40:41 +0100 Lines: 29 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.199.181.134 Message-ID: <468b7929$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1183545641 90.199.181.134 (4 Jul 2007 03:40:41 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail