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
0
votes
1 answer

Switching from CURL to HTTPie. Equivalent of CURL -T

I am working with cURL which is integrated into an xBase program. And the curl command line by me includes the option -T to download a local file to a CalDAV calendar. I tried to find it in HTTPie, but I did not find an equivalent command. Does…
0
votes
0 answers

How to use jq between two httpie calls to filter a stream of JSON objects

Here is a minimum example of how to catch the output of the Twitter API Filtered Stream and to send it to another API, in this case a FastAPI project, using httpie according to an example use case in the docs: http --stream get \ …
mcnesium
  • 1,423
  • 2
  • 16
  • 21
0
votes
2 answers

What output is used in bash (with HTTPie)?

I'm trying to analyze this command: $ http :"/hello" HTTP/1.1 401 Unauthorized I'm trying to save the whole thing in a variable VAR=$( ... ) but to no avail so far. If I run $ http :"/hello" 1>/dev/null everything disappear, so I…
JoeSlav
  • 4,479
  • 4
  • 31
  • 50
0
votes
1 answer

UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 8024: character maps to when re-directing output to disk

On Windows 10, I'm using httpie to retrieve data. It works fine when displaying on the screen, but as soon as I pipe the output to disk, I get http: error: UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 8024: character maps…
Peter Kronenberg
  • 878
  • 10
  • 32
0
votes
0 answers

csrftoken in django rest framework - sending through HTTPIE

I'm trying to login through the http form, from DRF: > https://my.site.io/api-auth/login/ Using httpie, i generate a session.json to get the CSRFToken: $ http --session=why -h https://my.site.io/api-auth/login/ Referrer-Policy: same-origin Server:…
Souza
  • 1,124
  • 5
  • 19
  • 44
0
votes
1 answer

Is there a way to force httpie to use '%20' instead of '+' for spaces in query parameters?

Using httpie v2.3.0, I am interacting with a REST api that recognizes %20 but not + for space encodings in the values of query parameters. Is there a way to change httpie behavior to achieve the desired behavior below? Query: http -v…
seandavi
  • 2,818
  • 4
  • 25
  • 52
0
votes
1 answer

How to properly include parameters to a curl request

So, I was working with some integrations with Veracode, I need to use this XML API(createsandbox.do) The documentation recommends do use HTTPIe, and it works fine in my machine. However, we need to implement this in our pipelines enviroment, that…
0
votes
1 answer

Httpie auth plugin issues POST Request FORMAT

POST JSON body doesnt work with these plugins and have opened issues. Same POST Syntax I have successfully used with oauth, ntlm etc HAWK echo '{"hello": "world"}' | http POST http://localhost:8080/ --auth-type=hawk --auth…
Artless
  • 21
  • 2
0
votes
0 answers

HTTPie Command from AWS Lambda (Python3.8)

I need to run HTTPie Command from withing the AWS Lambda I created a layer for HTTPie Added layer to my python function Running my HTTPie command from AWS Lambda which looks like below import subprocess def lambda_handler(req,…
0
votes
1 answer

(Django) Http POST request keeps returning bad request. I ran out of ideas regarding how to debug this

I have been trying to emulate Instagram login which takes either one of 'username', 'fullname', or 'email'. Below are the files for my 'account' Django app that I created: account/urls.py from django.urls import path from .views import…
Nicholas An
  • 156
  • 1
  • 9
0
votes
1 answer

is there an option for httpie that is equivalent to curl's --path-as-is option

Is there an option for httpie that is equivalent to curl's --path-as-is? I want to send the GET request without some characters url encoded
ksr
  • 15
  • 2
0
votes
1 answer

Problem with HTTPie installation on macOS

Terminal during installation indicates such a problem: MacBook-Pro:~ synkevych$ brew install httpie Error: The following formula [#, #] cannot be installed as binary package and must be built from…
Roman
  • 743
  • 10
  • 21
0
votes
1 answer

How to pipe header information of a httpie request in bash?

I am making a HEAD request against this file location using httpie: $ http HEAD https://dbeaver.io/files/dbeaver-ce_latest_amd64.deb HTTP/1.1 302 Moved Temporarily Connection: keep-alive Content-Length: 169 Content-Type: text/html Date: Mon, 09 Sep…
k0pernikus
  • 60,309
  • 67
  • 216
  • 347
0
votes
1 answer

can't receive monzo access token using axios

I've been trying for the whole day to perform a post request using axios in react (I'm trying to get an access_token for a Monzo app). I've followed the instructions here and they work perfectly when trying them out with the httpie command line tool…
linuxfever
  • 3,763
  • 2
  • 19
  • 43
0
votes
0 answers

Is there a way to query a website for a url with incorrect case?

I have this zsh function that finds the readme of github projects from their root link (e.g., https://github.com/Mortennn/Dozer -> https://github.com/Mortennn/Dozer/blob/master/README.md). Because the casing of this file is inconsistent (e.g.,…
HappyFace
  • 3,439
  • 2
  • 24
  • 43