Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

InternetExplorer "Navigate" Method

0 views
Skip to first unread message

Frank Latos

unread,
Mar 18, 1998, 3:00:00 AM3/18/98
to

I'm using OLE Automation to control an InternetExplorer object.

I can successfully use the Navigate method to load various web pages,
and use the Document property to examine the HTML contents of the
page.

But -- what I want to do now is emulate the clicking of a button on
the page
to post form data. I assume that I do this with Navigate()'s PostData
and Headers
arguments, but my experiments have so far been unsuccessful.

For instance, if the page contains:
<FORM name=form1 ACTION="/cgi-bin/something/something.exe"
METHOD="POST" ENCTYPE="application/html-form-urlencoded">
<INPUT NAME="thing1" VALUE="" MAXLENGTH="nn" SIZE=nn>
<INPUT TYPE=SUBMIT NAME="thing2" VALUE="Get Something">

Can anyone help me with the format of the PostData and Headers data?

Andy Webb

unread,
Mar 18, 1998, 3:00:00 AM3/18/98
to Frank Latos

Please refer to my earlier post ("decoding PostData from
BeforeNavigate"). You can decode PostData in VB as follows:

For Each n% In PostData
Debug.Print Chr(n%);
Next

Sorry, I've not done this the other way round (generating a post) - I'm
using Perl and libwww instead now.

Andy Webb

0 new messages