| Crates.io | line2httppost |
| lib.rs | line2httppost |
| version | 0.1.0 |
| created_at | 2022-10-25 00:07:04.824828+00 |
| updated_at | 2022-10-25 00:07:04.824828+00 |
| description | Simple HTTP client that POSTs each incoming stdin command line to specified URL, reusing the connection if possible |
| homepage | |
| repository | https://github.com/vi/line2httppost |
| max_upload_size | |
| id | 696372 |
| size | 21,776 |
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.
Download pre-built executables from Github releases, install it from source code with cargo install --path . or from crates.io with cargo install line2httppost.
$ 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