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

cannot upload image to django

I need to upload an image to django server with django rest framework. I tried to post the image using httpie and I am getting this error. http 400 no image was submitted. serializers.py from rest_framework import serializers from myapp.models…
Vivin Karthik
  • 23
  • 1
  • 6
0
votes
1 answer

"Expected List as JsArray" when posting to an akka-http server

I'm attempting to create a slight variation of the Orders/Items application here: https://github.com/akka/akka-http/blob/master/docs/src/test/scala/docs/http/scaladsl/SprayJsonExampleSpec.scala#L51 I'm connecting to the server using httpie, the…
FallingSkies
  • 121
  • 1
  • 10
0
votes
1 answer

Django upload Photo via Httpie

I'm using DRF 2.3.13 , I want to upload photos by typing from terminal, so I use Httpie. But I got MultiValueDict: {} , empty. Am I missing the headers="multipart/form-data" ?? If true, so how to set the headers in Httpie?? Ex: I've sent it , but…
khue bui
  • 1,366
  • 3
  • 22
  • 30
0
votes
0 answers

What is the proper API calling Syntax from Alamofire?

I am trying to call following API: http -v -a qi.test.ac@gmail.com:pasword -f POST 'http://localhost:8080/api/v1/user/messages' from="qi.test.ac@gmail.com" to={"qi.test.ac@gmail.com","qi_test_ac@yahoo.com"} subject="test_sub" bodyText="testing…
Md. Najmul Hasan
  • 605
  • 1
  • 6
  • 19
0
votes
1 answer

Flask HTTPie Connection refused

So I am testing my web service with HTTpie and I am trying to issue a GET request with the following http --json --auth : GET http://127.0.0.1:5000/api/v1.0/posts Removed actual email and password to post…
qasimalbaqali
  • 2,079
  • 24
  • 51
0
votes
1 answer

How to search on Google Places API using HTTPie

The following works in curl curl "https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=-33.8670522,151.1957362&radius=500&types=food&name=cruise&key=my_key" The following does not working in HTTPie http…
Riina
  • 530
  • 1
  • 7
  • 19
0
votes
1 answer

httpie gives me an error on macosx 'HTTPConnection'

I'm working on macosx and I try to use httpie (with Symfony2 and FOSRestBundle). I follow different tutorial on how to install httpie. When I try to launch with: http httpie.org I received the following error : http: error: AttributeError:…
Boun
  • 413
  • 4
  • 17
0
votes
4 answers

simulate an HTTP request with curl

I'm trying to debug an HTTP request that produces an error on our server. However, I'm struggling to reproduce the exact request somehow. On my nginx logs, I see this entry which generated the error 157.55.33.20 - - [22/Nov/2013:04:06:22 +0000] "GET…
gingerlime
  • 5,206
  • 4
  • 37
  • 66
0
votes
1 answer

How to use Docverter from Httpie?

I'm trying to render adocument using docverter from httpie. All the examples are for Curl. I tried http -f POST http://c.docverter.com/convert from=markdown to=html input_files@example.txt --output out.html But the website throws an…
Colonel Panic
  • 132,665
  • 89
  • 401
  • 465
-1
votes
1 answer

Cannot background HTTPie http request with `&` in .sh script

How come this works from the BASH prompt: /testproj> http http://localhost:5000/ping/ & [1] 10733 (env) /testproj> HTTP/1.0 200 OK Content-Length: 2 Content-Type: application/json Date: Sat, 17 Nov 2018 19:27:01 GMT Server: Werkzeug/0.14.1…
P i
  • 29,020
  • 36
  • 159
  • 267
-1
votes
2 answers

Request only the header in http call

Is there a ruby library, with which I can request the web server to return only the header response and no content? This will help me speed up a script in which all I care is the response code. I am now using…
anyavacy
  • 1,618
  • 5
  • 21
  • 43
-1
votes
1 answer

Python + Django / I want to use "http Post " to register email and password. HTTP/1.0 400

Python + Django / I want to use "http Post " to register email and password. But I got this message HTTP/1.0 400 BAD REQUESTAllow: POST, OPTIONS "Password is required." How can I fix it ?
Kaaat
  • 1
-3
votes
1 answer

httpie still use python 2.7 when python 3 is installed

I installed httpie via command sudo yum install httpie python3 command is on the PATH. But when I run http command it still use python 2.7 which cause error. http command error Traceback (most recent call last): File "/usr/bin/http", line 9,…
zjffdu
  • 25,496
  • 45
  • 109
  • 159
1 2 3 4 5 6
7