How Do I Get By The Basic Authentication Handshake When Using Fiddler To Test A WCF REST Service?
Creating a Basic Authentication RequestSelect the Composer tab. Set the HTTP/HTTPS method to GET and add the URL in the URL field. Create an object in the request Body and the user and passwd variables and their values. In this object, user and passwd are the predefined variables for the Basic Authentication.
Testing Basic Auth with httpbinThe endpoint for Basic Auth is /basic-auth/{user}/{passwd} . For example, if you go to http://httpbin.org/basic-auth/foo/bar you'll see a prompt and you can authenticate using the username foo and the password bar .
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With