CURL语法转换为 Python requests, Ansible URI, Node.js, R, PHP, Strest, Go, Dart, JSON, and Rust code

curl 命令

Examples: GET - POST - Basic Auth

Python requests

从Chrome获取curl命令
  • 1.在Chrome DevTools中打开“网络”标签 (Cmd + Opt + I)
  • 2.右键一个请求,点击Copy,然后点击 "Copy as cURL".
  • 3.将其粘贴到curl命令框中.
screenshot of chrome devtools