Thread View: borland.public.cppbuilder.internet.web
2 messages
2 total messages
Started by Lesley Anne
Wed, 25 Jul 2007 15:41
TCppWebBrowser or TIdHTTP, and parsing an html form
Author: 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)
Re: TCppWebBrowser or TIdHTTP, and parsing an html form
Author: Remy Lebeau (TeamB)
Date: Wed, 25 Jul 2007 16:51
Date: Wed, 25 Jul 2007 16:51
21 lines
1571 bytes
1571 bytes
"Lesley Anne" <mspfila (dash) brl (at) yahoo (dot) com> wrote in message news:46a76f57$1@newsgroups.borland.com... > Can a TCppWebBrowser handle SSL Of course. TCppWebBrowser is just a wrapper for IE's ActiveX object, so it can do everything the main IE browser can do. > Can a TCppWebBrowser be used for that? Yes. However, TCppWebBrowser is a visual component, and what you describe are not visual operations (unless you are going to display the form to the user to fill in), so TCppWebBrowser might be overkill for your needs. > If so, can it be used on a secure site? Yes. Gambit
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads