Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. SQL Server
  3. Question
SQL Server

HTTP basic authentication URL with “@” in password

Asked by Dhruv Tiwari May 23, 2021 2.9K views 1 answer
Share

About this question

I'm trying to set up some selenium tests to our staging server using Sauce Labs. It's behind a basic HTTP auth, so theoretically I could set the selenium URL to http://user:password@www.stagesite.com. However, the password contains a "@", causing all sorts of problems as you can imagine. I tried escaping it with a backslash but that did nothing from what I can tell.

So,

  1. is there an alternative way to do HTTP authentication using selenium, i.e., not via the URL. Or,

  2. is there a way to use URL-based auth but somehow tell the browser that the "@" is part of the password?

Your answer

1 Answer

More SQL Server discussions