开发者

how do I send userid/password in an https session

开发者 https://www.devze.com 2023-01-14 01:47 出处:网络
I\'ve built a reque开发者_开发知识库st in Fiddler and need to send authentication info with the https request.Where would I put these credentials and tell Fiddler to use them?You need to add an Author

I've built a reque开发者_开发知识库st in Fiddler and need to send authentication info with the https request. Where would I put these credentials and tell Fiddler to use them?


You need to add an Authorization line like this to the Request Headers:

Authorization: Basic dGVzdDp0ZXN0

This is assuming Basic authentication and dGVzdDp0ZXN0 is the Base64 encoded username and password in the form

username:password

You can use the TextWizard from within fiddler (Tools -> TextWizard) to generate the Base64 string.


Without knowing fiddler I'd assume:

protocol://user:password@hostname:port/


That entirely depends on what kind of authentication mechanism the server is using. Most web servers use Basic, Digest, or Negotiate authentication; all convey the credentials via the WWW-Authorization request header.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号