Skip to content

Tag: curl

HTTP post request?param=PARAM vs –data-urlencode

i am just querying my InfluxDB and i made it work, but i never did web so i am not so experienced with http protocol. I need to do curl request. This one works fine: But this does not and i dont understand why, i thought it is the same thing just differently put. I guess no need for u

Getting curl: (3) URL using bad/illegal format

My bash code is simply this. I am trying to learn docker but also a newbie with bash scripting. I type in something simple like google.com for the read command but it gives me curl: (3) URL using bad/illegal format or missing URL. Anyone know what I am doing wrong? docker exec -it missingDependencies sh -c &#…

How to SSH a curl command

env = GNU bash, version 4.2.46(2)-release (x86_64-redhat-linux-gnu) Situation: SystemA=No internet. SystemB=Yes internet. SystemA has a log file. SystemA wants SystemB to send a curl command for him. SystemA$ ssh SystemB curl -X POST -H “Content-type: application/json” -d “$data” $hook…

Bash script : problem with my substraction

I would like to make a script that will calculate the difference of download time between two curl. For example with this command : My curl command will be run each day and I would like to make a substraction between the value of the day and the value of the previous day. For that, I will save the time_total