S
S
semki0962019-06-13 13:16:17
linux
semki096, 2019-06-13 13:16:17

How to send POST request from console?

1. How to send a post request from a batch file or console?
2. Is it possible to send a post request directly from systemd? The task is to send requests on a timer every 5 seconds. As far as I understand, through the units, you can configure the launch of the batch file. But maybe I don't know, and you can make requests.
Thanks to everyone who helps.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton Vanin, 2019-06-13
@semki096

curl -d "param1=value1&param2=value2" -X POST http://localhost/data

T
t_q_l, 2019-06-13
@t_q_l

about POST and SystemD
https://stackoverflow.com/questions/31454947/trigg...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question