I won't to add something to the QueryString in WebBrowser_BeforeNavigate2 before the page is Navigated.
Someone tips, examples, ...
Thanks!
Printable View
I won't to add something to the QueryString in WebBrowser_BeforeNavigate2 before the page is Navigated.
Someone tips, examples, ...
Thanks!
What have you tried that isn't working?
I'v tried this:Quote:
Originally Posted by Hack
Apparantly I'm not getting al the post info with this method.Code:WebBrowser.Stop
WebBrowser.Navigate URL + QueryStringStr, Flags, TargetFrameName, PostData, Headers:="Something: " + GetSomething() + Chr$(13) + Chr$(10)
Is it not possible to just say WebBrowser.AddParam(QueryStringStr) ... or something?
URL & QueryStringStr
+ is used to add numbers. It won't always work correctly when used to concatenate strings.
TryThat'll give you a printout in the Immediate window, showing you what the program is feeding the browser. It'll stop at that point, so you can fix things if anything is wrong (then re-execute that line until you get it right, make changes to the WebBrowser.Navigate line and comment out the debug and stop lines).Code:Debug.Print URL & QueryStringStr, Flags, TargetFrameName, PostData, Headers:="Something: " & GetSomething() & vbNewLine
Stop
WebBrowser.Navigate URL & QueryStringStr, Flags, TargetFrameName, PostData, Headers:="Something: " & GetSomething() & vbNewLine