How to use curl to get a GET request exactly same as using Chrome?

前端 未结 3 823
北海茫月
北海茫月 2020-12-07 12:57

I have a web api http://something.com/api and I want to use GET to get the response body.

This is my command:

curl \"http://something.co         


        
3条回答
  •  旧巷少年郎
    2020-12-07 13:58

    Open Chrome Developer Tools, go to Network tab, make your request (you may need to check "Preserve Log" if the page refreshes). Find the request on the left, right-click, "Copy as cURL".

提交回复
热议问题