Article View: borland.public.cppbuilder.internet.web
Article #220TCppWebBrowser or TIdHTTP, and parsing an html form
From: Lesley Anne
Date: Wed, 25 Jul 2007 15:41
Date: Wed, 25 Jul 2007 15:41
25 lines
2262 bytes
2262 bytes
Can a TCppWebBrowser handle SSL, or do I need to use a TIdHTTP component with a TIdSSLIOHandlerSocket for that? I know the later will work and will get the page's source, but then I need to write the code myself to parse through all the html and javascript to find how and where to submit the form on the page. If necessary, I could probably do that for straight html, but it gets too complicated if the site throws javascript into the mix. And in either case, it feels too much like I'm re-inventing the wheel here. I haven't used TCppWebBrowser before, but it looks as though it may provide that parsing for me once I figure out how to use it. If it can't be used on a secure site, though, then it won't help me. Any suggestions on what's the best approach here? My application needs to get a web page (which will have a form on it), find all the input fields on that form, check their values, assign new values to some of them, perform whatever the form's submit button has for its onclick event, and post it back to wherever the form's action property says it needs to go. Can a TCppWebBrowser be used for that? If so, can it be used on a secure site? If I need to use the TIdHTTP component, is there a component or library that will help with parsing the html response it returns into the input fields I'm interested in? (using: BCB6, Indy9)
Technical Details
Message-ID:
<46a76f57$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: feeec,4e6f09983e231823,start X-Google-Attributes: gidfeeec,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Lesley Anne" <mspfila (dash) brl (at) yahoo (dot) com> Newsgroups: borland.public.cppbuilder.internet.web Subject: TCppWebBrowser or TIdHTTP, and parsing an html form Date: Wed, 25 Jul 2007 11:41:49 -0400 Lines: 27 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 144.160.5.25 Message-ID: <46a76f57$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1185378135 144.160.5.25 (25 Jul 2007 08:42:15 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail