Reputation: 61
I am creating a Canary in AWS Cloudwatch for a sharepoint website logging as a different user.
Trying pass username and password in url for Basic Authentication like below
http://username:password@websiteurl.....?loginasanotheruser=true
The Problem is username contains backslash (\) in this format username = domain\user.
So, when i am passing request with username with backslash its treating as invalid url or saying page not found.
Can some one please suggest me what is the best possible way to send username with back slash. Is there is a way to escape back slash ?
Thanks in Advance.
Pram
Upvotes: 0
Views: 1602
Reputation: 1889
You may have to percent encoded the special characters.
\ ==> %5C
More reference:
BR
Upvotes: 1