Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

login via post

Status
Not open for further replies.

M444

Programmer
Joined
Feb 24, 2004
Messages
76
Location
US
Hi everyone,

Im trying to make an auto-login process for a web page requireing a user ID and Password. Ive done this in the past using the Posts that are in the HTML ie.


but this particular web page uses .asp im not sure if that is why but it won't login with this method. ie.

Doesnt work!!!

anyone know why this might not work? or how I can find exactly what to send the browser to make it work?

Please if you even the least bit of an idea on this matter id appreciate your feedback!
 
It looks like the page may not even be there. If it is, then show your code on it for processing the form data.
 
sorry I could'nt post the actual website because it requires a password... the link was just an example of the data i might send to the actual page. Ill see if i can come up with some source code that is similar to it and post that later.

Thanks
 
How does the page process its username and password. You are assuming Request.QueryString though it might be a Request.Form. If it is the latter, your attempts will be completely ignored and you will have to look at creating a form on the fly. Also check the name of the variables, if they seem to be correct.
 
Hi Vragabond,

Thank you, I will look into the differnce between Request.QueryString and Request.Form. The variables are correct.

If you could, I would greatly appreciate any info on the difference between the two and how I can tell which it is. For now I will search tek-tips and the web.

Thanks,
Chris
 
Request.QueryString grabs the information from the address bar. If your .asp page would grab information from there, there should be a call to:
Request.QueryString('Userid')
Request.QueryString('Password')

However if your .asp page grabs info from posted data (usually from a form with a method="post"), then it is Request.Form where data can be grabbed like this:
Request.Form('Userid')
Request.Form('Password')

The point is that you cannot grab the information from either posted data or data from a address but have to explicitly say which you are using.
 
Unlike php ($REQUEST[]).

--Chessbot

"See the TURTLE of enormous girth!"
-- Stephen King, The Dark Tower series
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top