mirror of
				https://github.com/httpie/cli.git
				synced 2025-10-30 23:47:52 +02:00 
			
		
		
		
	
			
				
					
						
					
					459c9f1a337ccc7a7aa865b0a80314ce9a7a743e
				
			
			
		
	HTTPie: cURL for humans
HTTPie is a CLI frontend for python-requests.
Installation
pip install httpie
Usage
httpie [flags] METHOD URL [header:value | data-field-name=value]*
The default request Content-Type is application/json and data fields are automatically serialized as a JSON Object, so this:
httpie PATCH api.example.com/person/1 X-API-Token:123 name=John
Will issue the following request:
PATCH /person/1 HTTP/1.1
User-Agent: HTTPie/0.1
X-API-Token: 123
Content-Type: application/json; charset=utf-8
{"name": "John"}
You can use the --form flag to set Content-Type and serialize the data as application/x-www-form-urlencoded.
The data to be sent can also be passed via stdin:
httpie PUT api.example.com/person/1 X-API-Token:123 < person.json
Most of the flags mirror the arguments you would use with requests.request. See httpie -h for more details.
Description
				🥧 HTTPie CLI  — modern, user-friendly command-line HTTP client for the API era. JSON support, colors, sessions, downloads, plugins & more.
						
						
							
								 https://httpie.io/
							
						
						
							
							apiapi-clientapi-testingcliclientcurldebuggingdeveloper-toolsdevelopmentdevopshttphttp-clienthttpiejsonpythonrestrest-apiterminalusabilityweb
						
						
						
							
								 Readme
							
						
						
							
								 BSD-3-Clause
							
						
						
						
							
							
							 14 MiB
						
					
					Languages
				
				
								
								
									Python
								
								92.4%
							
						
							
								
								
									Roff
								
								5.1%
							
						
							
								
								
									Shell
								
								1.2%
							
						
							
								
								
									Makefile
								
								1.1%
							
						
							
								
								
									Dockerfile
								
								0.2%
							
						
					