I have to send SQl Server login information to an ASP page that returns an HTML report to a Webbrowser control in my application. So I do it from the Webbrowser by POST, using the code below to send it, I can get the number of bytes sent using Request.ServerVariables("CONTENT_LENGTH") but when I try to get the variables using Request.QueryString("usr") or Request.Form("usr") they do not exist, could anyone help me please. Thank you and sorry for my poor english. The code is :
Public Sub OpenReport(sPath As String, sPost As String, sHeader As String)
' sPath = url
' sPost = "pwd=passhere&usr=leandro"
' sHeader = "Content-Type: application/x-www-form-urlencoded" & vbCrLf
Dim bPost() As Byte
bPost = StrConv(sPost, vbFromUnicode)
Web.Navigate sPath, 14, vbEmpty, bPost, sHeader