Convert my cURL request to chrome.

I have a cURL command and it works great

 curl ­-X GET -H "Content-Type: application/json" -k -v -u admin:admin https://XXX/tenant/list

Note. I am sending a username, password, content type and payload with my request.

I want to send the same request to the Chrome Advanced Rest Client. How can I fill out a form?

+4
source share
1 answer

Try the following steps:

  • Open the Chrome Advanced Relax Client and enter your url

    https://yourdomain.com/tenant/list

  • Choose a method as POST

  • In the "Title" section, enter:

    Authorization: Basic YWRtaW46YWRtaW4=

    Here "YWRtaW46YWRtaW4 =" Base64 encoded admin value: admin

  • Type the payload request in the payload section.

  • set Content-Type as "application / json"

  • .

0

Source: https://habr.com/ru/post/1532762/


All Articles