当前位置:网站首页>Basic authorization command for Curl

Basic authorization command for Curl

2022-07-05 03:03:00 fyin1314

problem :

How do I set up the basic authorization using 64 encoded credentials ? How to use 64 Bit encoded credentials set basic authorization ?I tried below the two commands but of no use , please suggest. I tried the following two commands, but they didn't work , Please make suggestions .

curl -i -H 'Accept:application/json' Authorization:Basic <username:password> http://example.comcurl -i -H 'Accept:application/json' Authorization:Basic.base64_encode(username:password) http://example.com  

Solution :

Reference resources : https://stackoom.com/en/question/1PHtj
原网站

版权声明
本文为[fyin1314]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202140825303592.html