Solved

IE 3.0 WebBrowser Control: Getting the PostData

Posted on 1997-06-17
8
255 Views
Last Modified: 2013-12-03
When using the WebBrowser control to access web pages that submit form data, I want access to the posted data (URL encoded string) that is returned by the BeforeNavigate event.  I can access the URL and Header strings but the PostData array seems to be empty.  LBound(PostData) generates a type mismatch error and the TypeName(PostData) function returns "Empty" for non-form pages and "Empty()" when submitting on pages with form data.  Posted data is correctly being sent back to the server; I just can't seem to access it in the event callback.


0
Comment
Question by:mdn
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
8 Comments
 

Author Comment

by:mdn
ID: 1398476
Edited text of question
0
 

Author Comment

by:mdn
ID: 1398477
Adjusted points to 169
0
 

Author Comment

by:mdn
ID: 1398478
Adjusted points to 295
0
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 

Author Comment

by:mdn
ID: 1398479
Adjusted points to 550
0
 

Author Comment

by:mdn
ID: 1398480
Adjusted points to 725
0
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 720 total points
ID: 1398481
I'm not sure if you're still interested, but I haven't seen anybody attempted to answer your question, so I'm going to take a shot at it.

I've created an application using CWebBrowser2 and trapped its events in a MDI view, in particular the OnBeforeNavigate2. I've been able to get some PostData. In my testing, I see that I get information in the argument. The PostData itself is a pointer to a variant which contains another variant. The variant in my case is a VT_BSTR variant which contains a string. Are you not seeing this?

Note that I'm using IE4.0 to try this. I unfortunately do not have the IE3.x product to see if the same thing happens there.
0
 

Author Comment

by:mdn
ID: 1398482
What is CWebBrowser2 ? I'm using the WebBrowser control that comes with Visual Basic 5.0.  You also mentioned that you are using IE4.0.  I'm not even using a browser.  I built a standalone applicaiton that allows me to browse to a page on a server and submit form data.  I should be able to trap the form data that is being passed back to the server, but I can't.  Where does one find CWebBrowser2 ?

0
 

Expert Comment

by:execbase
ID: 1398483
CWebBrowser2 ist a C++ class. He use C++ instead of Visual Basic. You have to install IE4.0 to use CWebBrowser2 and with IE3.0 you can olny use CWebBrowser which is the old version.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question