Skip to content
Advertisement

Tag: curl

How to download URLs from the website and save them in a file (wget, curl)?

How to use WGET to separate the marked links from this side? Can this be done with CURL? I want to download URLs from this page and save them in a file. I tried like that. wget -r -p -k https://polsatboxgo.pl/wideo/seriale/pierwsza-milosc/5027238/sezon-44/5027472/pierwsza-milosc-odcinek-2984/585ddf5a3dde69cb58c7f42ba52790a4 Link Gopher separated the addresses. EDITION. How can I download addresses to the file from the terminal? Can it

How can this bash script be made shorter and better? Is there a way to combine multiple curl statements and if statements in bash?

The main script is scheduled and runs everyday and prints the success message everytime. If the status code is anything other than 200, $Status_code_1 or $Status_code_2, whichever is down prints the error code. The code is working fine but I want to know how can it be made shorter. Can the curl command from first 2 lines be combined because

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 “echo ‘Input Website:’; read

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 = fail SystemB$ curl -X POST -H “Content-type: application/json” -d “$data” $hook = success How do I achieve this without SystemA

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

How to extract testNG results in Jenkins console using Linux command

I’m trying to extract the user who is triggered the Jenkins job and testNG execution status from Jenkins console. Need to get below details from Jenkins console using Linux command. Jenkins console log: Started by user achuMohan =============================================== TransferMoneyTest Tests run: 10, Pass: 5 Failures: 3, Skips: 2 =============================================== Output: I tried the below command to get all the console

Curl is not installing with ssl support in Centos (at user defined –perfix)

There is already a curl & openssl version installed in my system (Centos). I am trying to install curl with ssl support. what I’ve done: I have installed openssl from git (master) and installed it as follows ./configure –prefix=/path/to/xyz/dir make make install This creates bin,include,lib etc at the location /path/to/xyz/dir Then I have added this path in environment variables export

Advertisement