Reading POSTData from a WebBrowser control
So I have this code, right:
VB Code:
Private Sub WebBrowser1_BeforeNavigate2(ByVal pDisp As Object, URL As Variant, Flags As Variant, TargetFrameName As Variant, PostData As Variant, Headers As Variant, Cancel As Boolean)
If capture.Value = 1 Then
Text1.Text = Text1.Text & "PostData:" & vbCrLf & PostData
Cancel = True
End If
End Sub
Basically I want to >READ< the POST Data that is about to be sent while i navigate in a webbrowser control. 'capture' being a checkbox control.
All i get in Text1.Text is "???????????????????????" in different lengths, depending on which site i'm on. I've tried using StrConv(PostData, vbFromUnicode/vbUnicode) but gotten only as far as a 'v'.
And these forms aren't advanced, they have a few <input type=hidden> and a textbox or two, can't be that difficult.
Does anyone know how to make the data READABLE to humans?