Article View: borland.public.cppbuilder.internet.web
Article #556How to use TIdHTTP::Get() to get 'login-protected' website-contents (when knowing the user-name/password)?
From: MR
Date: Mon, 27 Mar 2006 09:09
Date: Mon, 27 Mar 2006 09:09
28 lines
2123 bytes
2123 bytes
Trying to get a content on a login-protected website with the IE I first have to login (which perhaps stores the login-information in a cookie) and the next time I access to this content I do not have to do this any more. Because this content is more than one page and I want to access to it offline, I tried to get the same pages with TIdHTTP's Get()-methode (hoping, because login-information is already stored in the cookie (or somewhere else on my computer), I would get access to it without providing any password information. But unfortunately I was wrong. Comparing IE's source and TIdHTTP::Get()-result is also quite different: In the first one is my login-information, in the second one (when displayed with IE afterwards) quite the same page I get in IE if I would have not provided my login-information. So, how can I download the required pages. Can I use TIdHTTP::Get() at all? Can I provide the Get()-command with some login/password information. (The very best solution would be, if there would be a property in TidHTTP, which would allow having access to IE's cookies ;-) ) Or can I perhaps call IE from inside my program and let it download and store the required pages automatically? Thanks a lot, Michael
Technical Details
Message-ID:
<ea9f22d43tn11hsanfouueqru7oo3lige6@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.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-mailShow Full Headers
Complete Article Headers
X-Google-Thread: feeec,3b4cf1b4db85efc1,start X-Google-Attributes: gidfeeec,public X-Google-Language: ENGLISH,ASCII-7-bit From: <MR> Newsgroups: borland.public.cppbuilder.internet.web Subject: How to use TIdHTTP::Get() to get 'login-protected' website-contents (when knowing the user-name/password)? Date: Mon, 27 Mar 2006 11:09:30 +0200 Message-ID: <ea9f22d43tn11hsanfouueqru7oo3lige6@4ax.com> X-Newsreader: Forte Free Agent 3.3/32.846 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 84.57.7.132 X-Trace: newsgroups.borland.com 1143447029 84.57.7.132 (27 Mar 2006 00:10:29 -0700) Lines: 28 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.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