将cmd命令转换为Windows版本


-1

我开始学习cURL和graphQL。

书告诉我,我需要在终端中使用此命令行

$ curl -H 'Content-Type:application/graphql' -XPOST 
https://www.graphqlhub.com/g\
raphql?pretty=true -d '{ hn { topStories(limit: 2) { title url } } }'
{
  "data": {
    "hn": {
      "topStories": [
        {
          "title": "Bank of Japan Is an Estimated Top 10 Holder in 90% of the Ni\
kkei 225",
          "url": "http://www.bloomberg.com/news/articles/2016-04-24/the-tokyo-wh\
ale-is-quietly-buying-up-huge-stakes-in-japan-inc"
        },
        {
          "title": "Dropbox as a Git Server",
          "url": "http://www.anishathalye.com/2016/04/25/dropbox-as-a-true-git-s\
erver/"
        }
      ]
    }
  }
}

我正在使用Windows,这个cmd命令在Windows 7中不起作用。 我需要以某种方式将该代码转换为Windows版本。 有人可以帮助我,所以我可以在我的笔记本电脑上运行吗?


看起来主卷曲网站上有一个Windows版本的cURL: curl.haxx.se/download.html
Steve Rindsberg
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.