← 返回命令列表

Linux command

curlie 命令

网络

需要网络或远程资源。

常用示例

Example

curlie [httpbin.org/get]

Example

curlie post [httpbin.org/post] [name=john] [age:=25]

Example

curlie get [httpbin.org/get] [first_param==5] [second_param==true]

Example

curlie [httpbin.org/get] [X-Custom-Header:value]

Upload a file

curlie post [httpbin.org/post] < [file.json]

Pass curl options

curlie -k https://[self-signed.example.com/api]

说明

curlie is a frontend to curl that combines the ease of use of httpie with curl's power. It translates httpie-style syntax to curl commands and displays responses with syntax highlighting. It uses the same syntax conventions as httpie: = for string data, := for raw JSON, == for query parameters, and : for headers.

参数

key=value
String data field
key:=value
Raw JSON data field
key==value
Query parameter
header:value
HTTP header
-v
Verbose output (show request headers).
-I, --head
Send HEAD request.

FAQ

What is the curlie command used for?

curlie is a frontend to curl that combines the ease of use of httpie with curl's power. It translates httpie-style syntax to curl commands and displays responses with syntax highlighting. It uses the same syntax conventions as httpie: = for string data, := for raw JSON, == for query parameters, and : for headers.

How do I run a basic curlie example?

Run `curlie [httpbin.org/get]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does key=value do in curlie?

String data field