 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Alan Guest
|
Posted: Wed May 10, 2006 8:15 am Post subject: How to using POST method in TCppWebBrowser |
|
|
Hi All,
I want to post a form data to web server using TCppWebBrowser.
But I don't know how to do it?
Please help me!
Alan |
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Wed May 10, 2006 8:15 am Post subject: Re: How to using POST method in TCppWebBrowser |
|
|
"Alan" <sun (AT) mail (DOT) welltech.com.tw> wrote in message
news:44619b7f$1 (AT) newsgroups (DOT) borland.com...
| Quote: | I want to post a form data to web server using TCppWebBrowser.
|
TCppWebBrowser is a visual component. It is meant to be used visually by
the user. If you need to send HTTP data programmably, then you should code
for the HTTP protocol directly instead, either manually or through an HTTP
component (such as the one from Indy or ICS) or library (such as WinInet or
WinHTTP).
If you must manipulate TCppWebBrowser programmably, then you have to access
its DOM interfaces directly, such as IHTMLDocument2 and IHTMLFormElement.
You can query the IHTMLDocument2 interface from the TCppWebBrowser's
Document property, and then drill down the page elements from there. Refer
to MSDN for more details:
Interfaces and Scripting Objects
http://msdn.microsoft.com/workshop/browser/mshtml/reference/ifaces/interface.asp
Also, search through the newsgroup archives at http://www.deja.com. Code
snippets have been posted many times before.
Gambit |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|