cli icon indicating copy to clipboard operation
cli copied to clipboard

Feature request: support "http(s) request" from raw requests file

Open snowman opened this issue 5 years ago • 4 comments

From https://httpie.io/docs#offline-mode,

Generating raw requests that can be sent with any other client:

â–¶ RUN# 1. save a raw request to a file: $ http --offline POST httpbin.org/post hello=world > request.http â–¶ RUN# 2. send it over the wire with, for example, the fantastic netcat tool: $ nc httpbin.org 80 < request.http

Expected

one can run http < request.http or https < request.https to reproduce some results.

snowman avatar Nov 11 '20 14:11 snowman

So something along the line of batch requests from a file? I see what you're thinking here, and it would be nice to have an automated way to make a lot of requests efficiently. I suppose this would also require a directory as an argument to have somewhere to store all the output because printing to stdout would probably be a bad idea with batch requests.

PerfectlyInternal avatar Jan 10 '21 23:01 PerfectlyInternal

Actually duplicates #758

danslapman avatar Apr 16 '21 13:04 danslapman

i would be willing to work on this if no is already working on it

Sick-codes avatar Apr 29 '21 21:04 Sick-codes

Bonus for ability to add assertion capabilities so that entire test suites could be defined in .http files.

matthewadams avatar Jan 30 '24 14:01 matthewadams