Questions tagged [httpie]

HTTPie is a command line HTTP client. Its goal is to make CLI interaction with web services as human-friendly as possible. It provides a simple http command that allows for sending arbitrary HTTP requests using a simple and natural syntax, and displays colorized responses. HTTPie can be used for testing, debugging, and generally interacting with HTTP servers.

HTTPie: a CLI, cURL-like tool for humans

HTTPie is a command line HTTP client. Its goal is to make CLI interaction with web services as human-friendly as possible. It provides a simple http command that allows for sending arbitrary HTTP requests using a simple and natural syntax, and displays colorized responses. HTTPie can be used for testing, debugging, and generally interacting with HTTP servers.

https://httpie.org/

103 questions
3
votes
1 answer

How to send POST request for Nested JSON using HTTPie?

I want to send POST request using HTTPie from Windows shell JSON input Looks Like: { "name": "pub1", "email": "support@pub1.com", "address": { "city": "new york", "pincode": 12345 } } I have tried: http -v POST…
Ganesh Patil
  • 105
  • 1
  • 7
3
votes
1 answer

Rendering colors to command line from html?

I've tried using HTTPie and Curl, but neither appear to support the following scenario. curl somesite.com/somefile.html I am blue! I'm in control of the site, so I can use any markup I'd like, but I was hoping…
aronchick
  • 6,786
  • 9
  • 48
  • 75
3
votes
1 answer

How do I locate python command line tools after installing to (non-root) user account?

On my work server I run sudo pip install httpie which allows me to execute http google.com. On my school server I run pip install --user httpie. When I attempt to use the utility, I get a http: command not found error. I know that the package is…
spanishgum
  • 1,030
  • 1
  • 14
  • 29
3
votes
0 answers

How to send custom object in httpie request

I am doing a project which uses httpie. I was able to send primitive fields and it's array as a request query parameter. For example, say i have variable named "age" which is integer type, i can send this variable as a Query parameter, Form…
2
votes
2 answers

Unable to run http command in Windows even after instaling

I ran the command 'pip install -U httpie' and it went fine: Windows Command Prompt saying "Requirement already satisfied: PySocks!=1.5.7,>=1.5.6 in…
Alex Andra
  • 31
  • 1
  • 2
2
votes
2 answers

How to show timing details with HTTPie

This blog post shows that you can show timing details, e.g: $ curl -w "@curl_format.txt" -o /dev/null -s https://jsonplaceholder.typicode.com/comments time_namelookup: 0.001478s time_connect: 0.010429s time_appconnect: …
anta40
  • 6,511
  • 7
  • 46
  • 73
2
votes
1 answer

Httpie how to only get response header only

In HTTPie how to get response header. When i call http https://staging3.website.com Host:staging3.website.com I get both header and body response. How to I get only the response header
kumar
  • 8,207
  • 20
  • 85
  • 176
2
votes
2 answers

How can I enable tab-completion for `@` path options to HTTPie in fish?

HTTPie accepts paths as arguments with options that include the @ sign. Unfortunately, they don't seem to work with shell completions in fish. Instead, the option is treated as an opaque string. To stick with the file upload example from the HTTPie…
justfortherec
  • 1,590
  • 1
  • 13
  • 17
2
votes
1 answer

Convert httpie post request to python requests library

I have difficulties converting a post request using htppie to python requests.post. This question is in general about how to do such a conversion, but I will use the specific request I was doing as an example. So I have the following post request…
Jonathan Lindgren
  • 1,192
  • 3
  • 14
  • 31
2
votes
1 answer

How to use HTTPie to send an un-named JSON array

I have an API I want to invoke that wants something like this to be POSTed in the body: ["foo","bar"] I have read the official docs and can't see how to do this, is it possible? I have tried: http --verbose PUT foo.org :='["foo","bar"]' but HTTPie…
Michael Ray Lovett
  • 6,668
  • 7
  • 27
  • 36
2
votes
1 answer

Flask app - query parameters dropping out of request args

I have a simple Flask app (Flask version 1.0.3) with a single app. URL /ask and handler to process a POST query string of (name, value) pairs, but the request.args object is not storing all the parameter pairs, only the first pair. Why are the…
srm
  • 548
  • 1
  • 4
  • 19
2
votes
1 answer

Specific HTML parsing with Python 3 and BeautifulSoup

I am trying to parse the info in the bottom right table of the following link, the table that says Current schedule submissions: dnedesign.us.to/tables/ I was able to parse it down…
2
votes
0 answers

HTTPie returning "Error processing request. All request parts must have the content-type header set."

I'm testing an API with HTTPie. The implementation notes of the method I'm trying to use states that it accepts a multipart query containing a model in JSON format (Content-Type=application/json) and one or several files…
JG Trindade
  • 165
  • 1
  • 12
2
votes
1 answer

How to reset password with django rest framework SessionAuthentication

I'm building an api for a mobile app. The mobile client has full support for cookies so I want to use SessionAuthentication. After following the Django rest framework tutorial how would you configure the api and interact with it to reset a user's…
Harry Moreno
  • 10,231
  • 7
  • 64
  • 116
2
votes
1 answer

How to set number of retries in httpie?

How to tell httpie to retry for n times if the first connection failed?
Googlebot
  • 15,159
  • 44
  • 133
  • 229