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!

sending a password using inet control 1

Status
Not open for further replies.

Horrid

Programmer
May 20, 1999
373
I have created a web toolbar that requires the user to login.
Currently I am using
inet.OpenURL("URL.cgi?username=" & txtUserName.Text & "&password=" & txtPassword.Text)
to send the login request but the users password is visible in the browsers progress bar. Is it possible to mask the password somehow?

Thanks

 
Your are currently using the GET Method to send the data to your CGI. With this approach, you pass the data as arguments and the CGI program reads them from the Querystring. However, as you've said, the code shows in the browser's status bar. If you can use the POST Method to send the data to the CGI program, have the CGI read the data using Forms. The following is a sample code:

udata = "txtpassword=" & txtpassword.text & "&username=" & txtusername.text
Inet1.Execute targeturl, "POST", udata

using POST will not show your data on the progress bar.

arcanist
 
Thanks, that almost works but it would seem that execute doesn't return anything. How do I get the server response from the execute command?

Thanks

 
You could try to execute the GetChunk Method after the StateChanged event State = 12 (or RequestCompleted). However I haven't tried this before, Microsoft's reference indicates that the GetChunk Method is similar to a GET request. To do this try:

Inet1.Getchunk([length of data], icString)

tell me if it works :)

Arcanist
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top