Article View: borland.public.cppbuilder.internet.web
Article #232WebBrowser Navigate Post problems!
From: Mischa Simmonds
Date: Tue, 07 Aug 2007 13:32
Date: Tue, 07 Aug 2007 13:32
21 lines
1762 bytes
1762 bytes
I am trying to use either the Navigate or Navigate2 methods within IWebBrowser2 but even though I provide post data and the additional header data I can still only send the equivalent of a GET command (ie: just load the URL but not post any data with it) My code is something like this... AnsiString URL="http://www.somewhere.com"; AnsiString Post="name=Mischa&Country=Australia"; _di_IWebBrowser2 CppWebBrowser->Navigate2(URL,"","",Post,"Content-Type: application/x-www-form-urlencoded\r\n"); It looks like Post should be a Variant of sorts, but I just can't work it out. I have looked at http://msdn2.microsoft.com/en-us/library/aa752127.aspx (IWebBrowser2::Navigate/Navigate2 Methods), and also tried to use the ideas expressed in http://dn.codegear.com/en/article/27519 but get the same result. Any ideas?
Technical Details
Message-ID:
<46b87478$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: feeec,f3fb23a392722ed0,start X-Google-Attributes: gidfeeec,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Date: Tue, 07 Aug 2007 23:32:41 +1000 From: Mischa Simmonds <mischa1.BanSpam@informationdesign.BanSpam.com.au> User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.internet.web Subject: WebBrowser Navigate Post problems! Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 121.210.89.123 Message-ID: <46b87478$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1186493560 121.210.89.123 (7 Aug 2007 06:32:40 -0700) Lines: 21 Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail