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

Why do I need a trailing slash for the root URI in Spring Data Rest?

I'm using Spring Data Rest. I can access a resource from the command line using httpie with: http :8080/myapp/books but if I try to access the root URI http :8080/myapp I obtain a 302 redirection: HTTP/1.1 302 Date: Wed, 21 Dec 2016 13:30:57…
Ortomala Lokni
  • 56,620
  • 24
  • 188
  • 240
2
votes
1 answer

How to use http to send json

I am very new to http commands and apache bench, trying to do a simple benchmark. I had a question about how to send a json file usine httpie. I saw an old example that used an older cli to do it like this: http --verbose post example.org file.json…
zet
  • 71
  • 2
  • 8
2
votes
1 answer

httpie github api call gets 404 Not Found only when run from crontab

(ETA httpie in subject and tags, as it seems like it would be an issue with httpie's content being different in the corn context.) I'm at a loss as to how to troubleshoot this further. I'm using OAuth credentials to send a github API call with…
Scott
  • 1,247
  • 3
  • 10
  • 21
2
votes
2 answers

Remove default HTTP Headers from HTTPie's request

There are a couple of default headers that HTTPie sets. I'm wondering if there is a way to remove some header, like Accept-Encoding? The reason I like to unset Accept-Encoding is to check our server's behavior about HTTP Compression.
Drake Guan
  • 14,514
  • 15
  • 67
  • 94
2
votes
2 answers

storing httpie output with colors in document

I would like to use httpie to generate documentation for a REST web services. The idea would be to have a text containing sample requests with comments 'ping the server','http -v get :8080/ping' 'submit document','http -v post :8080/document…
LouisChiffre
  • 691
  • 7
  • 15
1
vote
1 answer

HTTP Request works in Postman but not in HTTPIE

I'm trying to make a simple http request to https://ip2country.info/ using httpie. For the life of me I can't get it to work. I'm trying to request to this URL: https://api.ip2country.info/ip?5.6.7.8 When I use this in Postman it works perfectly.…
bugsyb
  • 5,662
  • 7
  • 31
  • 47
1
vote
1 answer

Does HTTPie have the equivalent of curl's -d option?

I want to query a REST API with HTTPie. I am usuale to do so with curl, with which I am able to specify maxKeys and startAfterFilename e.g. curl --location --request GET -G \ …
Saverio Guzzo
  • 419
  • 5
  • 16
1
vote
1 answer

Add default headers for every request in httpie

I need to be able to either set in my httpie/config.json file to include some default headers (these are custom headers and not normal ones) to every request that i send from httpie by default (ALWAYS) ie: headers examples http…
1
vote
0 answers

Command / CLI based REST Http client to process bulk requests (i.e. like .http files)

Need a tool/setup in place that will trigger RESTful webAPI requests using a preformatted file (which contains Http request config and payload) .. like the .http file format supported by VScode REST client. We need a CLI because the process is…
Hemant Tank
  • 1,724
  • 4
  • 28
  • 56
1
vote
1 answer

HMAC protected API and Postman request

I am trying to issue requests against an API which is HMAC protected. I can successfully send a request using a HMAC auth plugin for HTTPie like this: http --auth-type=hmackey --auth="key1:secret1" api_url However, I've not had any success by…
Carlos Gonzalez
  • 607
  • 1
  • 5
  • 13
1
vote
1 answer

(Django) 'CommentView' object has no attribute 'body'

I have been trying to emulate comment functionality with a decorator. import json import jwt from django.views import View from django.http import JsonResponse from functools import wraps from django.db.models …
Nicholas An
  • 156
  • 1
  • 9
1
vote
1 answer

HTTPie prompts for password

I am using HTTPie to make edgegrid authenticated calls to a set of REST APIs, but httpie always asks for password which hinders my ability to make calls in a shell script. The password is my localhost/system password, which after inputing, the…
Maximus
  • 285
  • 5
  • 19
1
vote
1 answer

How to bundle httpie with httpie-aws-authv4 into Python zipapp?

It is straightforward to package httpie into a Python "PYZ" (zipapp), e.g. using $ pip install --upgrade zapp $ zapp httpie.pyz httpie.__main__:main httpie $ python ./httpie.pyz --version 1.0.3 Now I tried to include httpie-aws-authv4 as a plug-in…
mgaert
  • 2,338
  • 21
  • 27
1
vote
2 answers

How do I pass multiple query parameters by xargs into httpie?

I tried below to pass a parameters to httpie and it turned into POST method unexpectedly. 1) $ echo "a1 b1" | xargs -t -n2 bash -c 'http -v https://httpbin.org/anything arg1==$0 arg2==$1' bash -c http -v https://httpbin.org/anything arg1==$0…
Yusuwa
  • 21
  • 3
1
vote
2 answers

Wordpress XML-RPC POST returning -32700 error with php-xml extension installed

I am using HTTPie to do a POST request to my local Wordpress installation with the aim of checking if XML-RPC is available and enabled. http --verify=no POST https://crmpicco.localhost/xmlrpc.php data="
crmpicco
  • 16,605
  • 26
  • 134
  • 210