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

How to debug my HTTPie or Postman so Akamai FastPurge API can make successful calls?

I wanted to use HTTPie or Postman to snip together a request for the Akamai FastPurge API, so I could see the structure and HTTP request as a whole with the aim to build a java module that builds the same HTTP request. I've tried several tutorials…
Fuchs
  • 133
  • 6
0
votes
1 answer

Make POST call with XML payload with HTTPie

Is there equivalent way to make this cURL call with HTTPie? curl -k -d '
crmpicco
  • 16,605
  • 26
  • 134
  • 210
0
votes
0 answers

Host a Httpie Server

I have a webapp with API documentation where the examples have the users using httpie to make requests. It would be extremely useful if the user could follow along on the same screen on a terminal, typing in the commands, making requests and the…
Magger
  • 83
  • 1
  • 7
0
votes
1 answer

Powershell HTTPIE

I'm trying to POST the following but I keep getting an error: "http: error: argument REQUEST_ITEM: "with" is not a valid value" http POST https://someurl.com fields:='{\"example-api-identifier\":\"String with spaces\"}' Token:randomnumbers How do I…
imanidiot
  • 1
  • 1
0
votes
1 answer

How to send a POST request in httpie including quotes?

I use httpie in the windows shell. My command looks like this: http --form -v POST "http://192.168.1.1/set/time" category=Time settings={"timezone":"Universal","ntp":{"enable":"no"},"time":"11:19:53","date":"2018-10-31"} However, the json value is…
0
votes
1 answer

Load a file via JHipster REST service using HTTPie or Curl

I have made a JHipster (v5.3.1) app that has an entity Attachment that contains a Blob field called fileAttachment. Using the generated Angular 6 web front end I am able to load files to the app. I would like to do the same using command line…
Mark
  • 2,260
  • 18
  • 27
0
votes
0 answers

POST API command with space in strings erroring out in Powershell via HTTPie

I'm getting an error when I have a POST command with spaces in the string, such as "I like cars". The "follow-ups" is an API identifier. I've tried adding a ' (single quote) before/after the string, but that didn't work either.
imanidiot
  • 1
  • 1
0
votes
0 answers

correct syntax httpie request in windows command prompt

How can I correct input this request in httpie in windows command prompt? http POST http://localhost:1337/api/articles title=TestArticle author='John Doe' description='lorem ipsum dolar sit amet' images:='[{"kind":"thumbnail",…
konsul777
  • 11
  • 5
0
votes
0 answers

How to disconnect a curl connection to proxy server?

I use a proxy server in PHP via curl or httpie. $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_PROXYPORT, 80); curl_setopt($ch, CURLOPT_PROXYTYPE, 'HTTP'); curl_setopt($ch, CURLOPT_PROXY,…
Googlebot
  • 15,159
  • 44
  • 133
  • 229
0
votes
1 answer

Using variables in GraphQL object query

I'm working through the GraphQL JS tutorial and trying to understand how variables work with the queries. In the Object Types section I can get this working fine: My server.js file: const express = require('express') const graphqlHTTP =…
SeanPlusPlus
  • 8,663
  • 18
  • 59
  • 84
0
votes
1 answer

trusted certificate curl vs httpie

trying to understand how to work around with self signed certificates. I am using vagrant ubuntu xenial box .After importing the ROOT certificate using method described in unix.stackexchange.com. To my surprised curl worked but httpie doesn't. …
black sensei
  • 6,528
  • 22
  • 109
  • 188
0
votes
1 answer

custom url parameters for api endpoint

Using HTTPie https://httpie.org/doc#usagehow do I create a custom URL that I can use to insert my api endpoint? if given a base url for example that I want to append a date too to reach the endpoint /myURL/data /myURL/data/yyy/mm/dd how can I add…
sayth
  • 6,696
  • 12
  • 58
  • 100
0
votes
1 answer

phpseclib - Errors when running via CRON but not when execute manually

I am using phpseclib 2.0 on my site, installed using composer. I wrote a php function which basically connects to a remote server via SFTP, and download files within a predefined directory. This function is called via CRON using cURL and have been…
asyadiqin
  • 1,637
  • 3
  • 19
  • 25
0
votes
1 answer

How to have curl or httpie access subdomains locally with Rails 5

I'm building an API with Rails 5 and trying to test post requests locally on the command line with either curl or httpie. However, I'm using constraints subdomain: 'api' in my routes and both curl and httpie don't like that. If I open Chrome and go…
stevenpslade
  • 310
  • 1
  • 18
0
votes
0 answers

Send large files throug http with httpie

I recently discovered httpie (https://httpie.org) and liked it a lot. it's very simple to make requests for a remote server, specially when working with REST API requests. But now I'm stucked with sending large files with httpie. It first load the…
Caco
  • 1,601
  • 1
  • 26
  • 53