How Do I Get By The Basic Authentication Handshake When Using Fiddler To Test A WCF REST Service?
10,525
You need to base64 encode your username:password and then prefix it with Basic. It will end up looking something like:
Authorization: Basic VEFWSVNcZGFycmVsOg==
You then enter this in the request headers field.
![Peter](https://i.stack.imgur.com/Df1XC.png?s=256&g=1)
Author by
Peter
NYC-based software developer and writer. Always interested in talking shop - feel free to reach out!
Updated on June 05, 2022Comments
-
Peter about 2 years
How Do I Get By The Basic Authentication Handshake When Using Fiddler To Test A WCF REST Service?
-
Peter over 13 yearsDarrel, what format should the text file that I am encoding be in? It looks like when it gets decoded on the server I am getting [email protected]. I am guessing these are spaces but I don't have any leading spaces in my file.
-
Darrel Miller over 13 years@Code Sherpa What textfile? In the RequestBuilder tab in fiddler, there is a Request Headers textbox. Just paste your authorization header in there.
-
Peter over 13 yearsYes, but the username:password needs to be encoded into a base64 string first... I have a utility that takes a file and outputs the contents to base 64 but am getting leading ????.
-
Peter over 13 yearsOK, the Fiddler Text Encode/Decode utility worked... I forgot about this. Thanks for your help
-
Darrel Miller over 13 years@Code Sherpa I had no idea about that Fiddler utility :-) Now I do!
-
ladenedge almost 13 yearsFor the record, this handy utility (which I also just discovered) is in
Tools -> Text Encode/Decode...
. -
Leniel Maccaferri over 11 yearsIn Fiddler 4.4.2.1 (beta) it's in
Tools -> Text Wizard
. :)