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?
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