cURL からコードに変換
curl コマンドを JavaScript fetch、Node.js、Python requests、PHP cURL コードに変換します。
使い方
Using the generated code
Paste any curl command, including multi-line commands with backslashes, then choose the target language. Headers, the HTTP method and the request body are preserved.
- Copy a curl command from an API's documentation.
- Paste it and pick a language.
- Copy the snippet into your project.
よくある質問
Which curl options are supported?
Requests, headers, data, user credentials, cookies and common flags. Options that do not change the request, such as -s or -L, are ignored.
Is my command sent anywhere?
No, the parsing and code generation run entirely in the browser.
関連ツール
URL パーサー
URL をプロトコル、ホスト、ポート、パス、クエリ、フラグメントに分解し、各クエリパラメータを確認します。
HTTP ステータスコード一覧
一般的な HTTP ステータスコードを名前と返される状況の説明つきで検索できます。
JSONPath テスター
JSONPath 式で JSON データをクエリし、一致する値をすぐに確認します。
HTML フォーマッター
インライン要素と空要素を正しく保ちながら、一貫したインデントで HTML を整形します。
CSS フォーマッター
1行に1プロパティ、一貫したインデントで CSS を整形します。
JavaScript フォーマッター
適切なインデント、空白、改行で JavaScript を整形します。