Home

Awesome

line2httppost

Simple tool to read lines from stdin and post each line as separate POST request to a specified URL (TCP connection is reused though).

Good together with postsse, allowing to feed CLI tools output to it.

Features

Limitations

Installation

Download pre-built executables from Github releases, install it from source code with cargo install --path . or from crates.io with cargo install line2httppost.

Example

$ line2httppost http://example.com
123
ABC
POST / HTTP/1.1
content-type: text/plain
host: example.com
content-length: 3

123

POST / HTTP/1.1
content-type: text/plain
host: example.com
content-length: 3

ABC