I am working on one VB.NET application where I am using WinHttp.dll to post request on website.
First request is for Login Page and I have gone through all input types of that page and pass those variables and value pair in Send method of WinHTTPRequest but it is not works.
Let' me inform you that this login page has viewstate hidden input type, so should I have to pass it in post string (String for Send method argument)
list of Input types are
Name Value Type
Arg1 3 Hidden
_ViewState Some Value Hidden
UserID "Test" Text
PWD "Test" Password
SignIn "Sign In" Button (works as Submit)
I create post string as
First Attempt:
"Arg1=3&_ViewState&UserID=Test&PWD=Test&SignIn=Sig n IN"
Second Attempt: without _ViewState
"Arg1=3&UserID=Test&PWD=Test&SignIn=Sign IN"
Third Attempt:without _ViewState and SignIn
"Arg1=3&UserID=Test&PWD=Test"
Action page in Form tag is same aspx as login aspx page.
when I try like
WinHTTPRequestObj.Send(PostStr)
Response = WinHTTPRequestObj.ResponseText
Response will be contain same page as Login aspx page
So, can you please help me