WebBrowser Control PostData parameter doesn't seem to work 
Author Message
 WebBrowser Control PostData parameter doesn't seem to work

The online help seems to say that if I pass the PostData parameter, then it
will send a POST instead of a GET.  I created a page that just turns around
and spits out the form data (ASP:  request.form), and I get nothing.

    Dim sPostData, sURL as String
    Dim oWeb As New InternetExplorer

    sPostData = "arg=" & sItemNumber & "&MFR=0"
    sURL = " http://www.*-*-*.com/ ;
    oWeb.Navigate sURL, , , sPostData



Tue, 21 Sep 2004 04:00:01 GMT  
 WebBrowser Control PostData parameter doesn't seem to work
VB creates a Unicode string by default so we need to
convert it back to Single byte character set.

sPostData = StrConv(sPostData, vbFromUnicode)

Then do the navigate.

Quote:
>-----Original Message-----
>The online help seems to say that if I pass the PostData
parameter, then it
>will send a POST instead of a GET.  I created a page that
just turns around
>and spits out the form data (ASP:  request.form), and I
get nothing.

>    Dim sPostData, sURL as String
>    Dim oWeb As New InternetExplorer

>    sPostData = "arg=" & sItemNumber & "&MFR=0"
>    sURL = "http://somehost.com/TestPage.asp"
>    oWeb.Navigate sURL, , , sPostData

>.



Wed, 29 Sep 2004 02:21:11 GMT  
 WebBrowser Control PostData parameter doesn't seem to work
VB creates a Unicode string by default so we need to
convert it back to Single byte character set.

sPostData = StrConv(sPostData, vbFromUnicode)

Then do the navigate.

Quote:
>-----Original Message-----
>The online help seems to say that if I pass the PostData
parameter, then it
>will send a POST instead of a GET.  I created a page that
just turns around
>and spits out the form data (ASP:  request.form), and I
get nothing.

>    Dim sPostData, sURL as String
>    Dim oWeb As New InternetExplorer

>    sPostData = "arg=" & sItemNumber & "&MFR=0"
>    sURL = "http://somehost.com/TestPage.asp"
>    oWeb.Navigate sURL, , , sPostData

>.



Wed, 29 Sep 2004 02:21:08 GMT  
 WebBrowser Control PostData parameter doesn't seem to work
Hi, Raj,

I tried your technic, doesn't work either.
Can you just simply set the parameter like sPostData = "arg=" & sItemNumber?
Ms said it is a SAFEARRAY Data Type structure.
Any further direction please?

Chris


Quote:
> VB creates a Unicode string by default so we need to
> convert it back to Single byte character set.

> sPostData = StrConv(sPostData, vbFromUnicode)

> Then do the navigate.

> >-----Original Message-----
> >The online help seems to say that if I pass the PostData
> parameter, then it
> >will send a POST instead of a GET.  I created a page that
> just turns around
> >and spits out the form data (ASP:  request.form), and I
> get nothing.

> >    Dim sPostData, sURL as String
> >    Dim oWeb As New InternetExplorer

> >    sPostData = "arg=" & sItemNumber & "&MFR=0"
> >    sURL = "http://somehost.com/TestPage.asp"
> >    oWeb.Navigate sURL, , , sPostData

> >.



Mon, 04 Oct 2004 03:15:21 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. IE3 doesn't work after working with webbrowser control

2. How to use the PostData parameter in Navigate2 method of WebBrowser control

3. How to use the PostData parameter in Navigate2 method of WebBrowser control

4. ActiveX login doesn't work with WebBrowser control, but is fine in IE6

5. ActiveX login doesn't work with WebBrowser control, but is fine in IE6

6. HitTest doesn't seem to work as expected

7. FormField.EntryMacro doesn't seem to work

8. AddHandler doesn't seem to work

9. AppActivate doesn't seem to work with SendKeys

10. AddHandler doesn't seem to work

11. Adding CookieCollection to WebRequest doesn't seem to work

12. close method on RegistryKey.OpenRemoteBaseKey doesn't seem to work

 

 
Powered by phpBB® Forum Software