🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.web
Article #997

Example With WebPostData

#997
From: caleb
Date: Mon, 17 Oct 2005 14:53
58 lines
2284 bytes
Novice User

Question regards "How to post data using TCppWebBrowser in C++Builder (http://bdn.borland.com/article/0,1410,27519,0.html)".

Can someone provide code showing how the function is called.

--

Here is something I am trying to figure out:

How do I value:

   sURL

   sPostData

Given the form on this page (http://www.gemdev.com/auctions/login.php)

presently I have 

utils->WebPostData(bro,"http://gemdev.com/auctions/login.php",

                 "username=bea&password=[****]&login=Log in");

Thanks

...
This is the form from that page:

<form method="post" action="login.php?sid=8544d83f23a3049e19aa98d495a503f7">

<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">

<tr>

<td class="catHead" height="28"><a name="login"></a><span class="cattitle">Log in</span></td>

</tr>

<tr>

<td class="row1" align="center" valign="middle" height="28"><span class="gensmall">Username:

<input class="post" type="text" name="username" size="10" />

&nbsp;&nbsp;&nbsp;Password:

<input class="post" type="password" name="password" size="10" maxlength="32" />

&nbsp;&nbsp; &nbsp;&nbsp;Log me on automatically each visit

<input class="text" type="checkbox" name="autologin" />

<input type="submit" class="mainoption" name="login" value="Log in" />

</form>
 
Technical Details
Message-ID: <4353bb00$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!atl-c02.usenetserver.com!news.usenetserver.com!atl-c07.usenetserver.com!news.usenetserver.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,ca14d8698db3e7b8,start
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "caleb" <caleb_559@excite.com>
Sender: "caleb" <caleb_559@excite.com>
Reply-To: "caleb" <caleb_559@excite.com>
Subject: Example With  WebPostData 
Newsgroups: borland.public.cppbuilder.internet.web
X-User-Info: 209.165.11.210     
NNTP-Posting-Host: 207.105.83.66
Message-ID: <4353bb00$1@newsgroups.borland.com>
Date: 17 Oct 2005 07:53:52 -0700
X-Trace: newsgroups.borland.com 1129560832 207.105.83.66 (17 Oct 2005 07:53:52 -0700)
Lines: 58
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!atl-c02.usenetserver.com!news.usenetserver.com!atl-c07.usenetserver.com!news.usenetserver.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail