Re:The time might come when we add some JSON specific comman...
by 1vuio0pswjnm7 on Thursday January 20, 2022 @09:11PM
(#30018346)
There is a different way, without curl or other curl-like programs, without Python, Go, etc. It is smaller and faster, IME as a non-developer.
post is a 702-character shell script. printf is a built-in.
Data to be posted may be stored in a one-line file named "1.txt"
Examine the request
POST the request
Alternatively, data to be posted can be read from stdin
If the data to be posted is JSON formatted as multiple lines such as
then something like
For TLS we use proxy listening on 127.0.0.1, e.g., stunnel, sslsplit, haproxy, etc. This way we only ever have to type a single address and port, i.e., 127.1 80, or short alias for the hostname, e.g., echo 127.0.0.1 p >> /etc/hosts.
[ Parent
| on HN ]
Re:The time might come when we add some JSON specific comman...
by 1vuio0pswjnm7 on Friday January 21, 2022 @10:35PM
(#30033159)
Apologies for unintentional duplicate. Happens sometimes when I forget to change default cache settings in text-only browser.