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.

Share:
10,525
Peter
Author by

Peter

NYC-based software developer and writer. Always interested in talking shop - feel free to reach out!

Updated on June 05, 2022

Comments

  • Peter
    Peter about 2 years

    How Do I Get By The Basic Authentication Handshake When Using Fiddler To Test A WCF REST Service?

  • Peter
    Peter over 13 years
    Darrel, 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
    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
    Peter over 13 years
    Yes, 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
    Peter over 13 years
    OK, the Fiddler Text Encode/Decode utility worked... I forgot about this. Thanks for your help
  • Darrel Miller
    Darrel Miller over 13 years
    @Code Sherpa I had no idea about that Fiddler utility :-) Now I do!
  • ladenedge
    ladenedge almost 13 years
    For the record, this handy utility (which I also just discovered) is in Tools -> Text Encode/Decode....
  • Leniel Maccaferri
    Leniel Maccaferri over 11 years
    In Fiddler 4.4.2.1 (beta) it's in Tools -> Text Wizard. :)