工具大全 ToolBox — 免费在线工具箱
200+ 免费在线工具,纯前端本地运行,数据不上传服务器。
i关于本工具
用途说明
HTTP 请求代码生成器面向开发者与测试工程师:粘贴 Chrome DevTools、Postman、Apifox 的 Copy as cURL,在浏览器本地解析为 Method、URL、Query、Headers、Cookies 与 Body,并一键生成 Python requests、JavaScript fetch/axios、Go net/http、Java OkHttp、Rust reqwest 及标准 cURL。敏感 Token 不上传服务器,适合 API 联调、自动化脚本迁移与技术文档多语言示例编写。
使用步骤
- 从浏览器网络面板或 Postman 复制 cURL,粘贴到「导入 cURL」区域。
- 点击「解析」,在中间「请求结构」中核对或修改 Method、URL、Headers、Body。
- 在「生成代码」区选择目标语言(Python、fetch、axios、Go 等)。
- 点击「复制代码」;需要在线发请求时,点「在 Postman 中调试」跳转到简易 Postman。
常见问题
会上传我的 cURL 或 Token 吗?
支持哪些 cURL 格式?
和「简易 Postman」有什么区别?
能否从 Python 代码反向转成 cURL?
上文已说明该工具是本地处理还是会调用第三方接口,请按场景选用。
What it is for
HTTP Request Code Generator helps developers and QA paste cURL from Chrome DevTools, Postman, or Apifox, parse it locally into method, URL, query, headers, cookies, and body, then export Python requests, JavaScript fetch/axios, Go net/http, Java OkHttp, Rust reqwest, or cURL. Tokens stay in your browser — ideal for API debugging, test migration, and multilingual doc snippets.
How to use
- Copy cURL from DevTools or Postman into the import area.
- Click Parse and review Method, URL, headers, and body in the structure panel.
- Pick a target language tab (Python, fetch, axios, Go, etc.).
- Copy the code; use Debug in Postman to send the request on this site.
FAQ
Is my cURL or token uploaded?
Which cURL flags are supported?
How is this different from the HTTP client?
Reverse parse from Python to cURL?
Processing notes above describe whether work stays in your browser or calls third-party APIs.
404
工具不存在或链接有误。