a11y.skipToMainContent
1

cURL から コード

任意の cURL コマンドをペーストし、即座に JavaScript (fetch)、Python (requests)、Go (net/http)、PHP (cURL) などに変換します.

cURL Command
Generated Code
More options
Was this tool helpful?
Send output to:
Advertisement

How to use cURL to Code

  1. CURL コマンドを入力フィールドに貼り付けます.
  2. 対象言語を選択します.
  3. 生成されたコードを表示します.
  4. コードをクリップボードにコピーします.

cURL から コードとは?

コードコンバーターへの cURL は cURL コマンドをとり、お好みのプログラミング言語で同等のコードを生成します。 cURL コマンドから URL、メソッド、ヘッダ、ボディ、認証を解析します。

このツールは、ドキュメントやターミナルからAPI呼び出しをアプリケーションコードに翻訳する際に時間を節約できます。 JavaScript (fetch and axios), Python (requests), Go (net/http), PHP (cURL), Ruby (Net::HTTP) に対応しています。

Advertisement

FAQ

CURL フラグがサポートされていますか?
-X, -H, -d, --data-raw, -u, --compressed, -k などの一般的なフラグがサポートされています.
複雑な cURL コマンドを変換できますか?
はい。parser は複数のヘッダ、ボディデータ、認証で複数行の cURL コマンドを処理します.

Related tools

Author

MW
Marcus Webb"The DevTool Craftsman"

Full-Stack Developer & Tools Architect

Marcus has been writing code since the dial-up era. He has contributed to open-source developer tools, built CI/CD pipelines for startups, and debugged production incidents at 3 AM more times than he would like to admit. His philosophy is that the best developer tool is the one that gets out of your way, and he writes about practical tooling that helps teams ship faster with fewer headaches.

Advertisement