How to stimulate cURL request to a request using postman

前端 未结 2 1272
北恋
北恋 2020-12-30 05:23

I am using the following cURL request to localhost which runs fine:

curl -u admin:e4d4face52f2e3dc22b43b2145ed7c58ce66e26b384d73592c -d \"{\\\"jsonrpc\\\": \         


        
2条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-30 05:36

    Curl is using HTTP Basic authentication by default. Your headers set in Postman are something different. Try using Basic Auth in Postman. It is in top panel, you fill in username and password and authorization header will be generated.

提交回复
热议问题