1

I have a link for example:

www.site.com

When I click on it the site has an authentication requirement. Is there anyway I can engineer the link so that the username and password are automatically filled in so I don't have to enter these details such as:

www.site.com?username="jim"&password="qwerty"

I was considering http headers but not sure how to implement or whether it is possible.

Jonny C
  • 1,943
  • 3
  • 20
  • 36
EamonnMcElroy
  • 587
  • 6
  • 20
  • This used to be possible by putting username and passwort into the URL, but browsers no longer support it, and it's a bad idea anyway because the credentials would show up in the browser history, etc. – Pekka Jan 26 '17 at 11:30
  • ... although you *may* be able to indeed do something with the headers. See http://stackoverflow.com/questions/5507234/how-to-use-basic-auth-with-jquery-and-ajax for how to authenticate through Ajax. That *should* log the user in, but I don't know for sure. – Pekka Jan 26 '17 at 11:31
  • 2
    Its for a basic test so I was indeed able to pass the username and password in the url like this http://username:password@www.site.com. I understand its not the most secure but for basic testing it did the job. Thanks for the info guys. Much appreciated. – EamonnMcElroy Jan 26 '17 at 12:13

0 Answers0