471,357 Members | 1,046 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,357 software developers and data experts.


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

Action page in Form tag is same aspx as login aspx page.

when I try like


Response = WinHTTPRequestObj.ResponseText

Response will be contain same page as Login aspx page

So, can you please help me
Aug 12 '05 #1
0 3027

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Bryce | last post: by
reply views Thread by Vijay | last post: by
1 post views Thread by saravana kumar | last post: by
1 post views Thread by Gaetan | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.