Questions tagged [curl]

cURL is a CLI tool for issuing HTTP GET, POST, & PUT request.

Filter by
Sorted by
Tagged with
0
votes
0answers
6 views

how to urlencode curl messages

i have script got error when curl message . i think have some problem with character "space" or other because when i tried skip space , script running normal. this is my script : #!/bin/env bash ...
-1
votes
1answer
16 views

curl still emitting progress info even with --silent option

I have this curl command: curl --silent -o- https://raw.githubusercontent.com/oresoftware/run-tsc-if/master/install.sh | bash || { echo "Could not install run-tsc-if on your system."; exit 1; ...
0
votes
1answer
16 views

curl with headers loop syntax issue

I'm trying to do some API REST requests with the curl loop command below. With a first list of URL (with REST request inside), this works perfectly, with a second one I get "curl: (3) Illegal ...
0
votes
1answer
125 views

How to install php7.2-curl on a Debian 10? It depends on libcurl3 that is not available

I need php7.2-curl. But on Debian 10 apt says that it cannot be installed due to a dependency with libcurl3. But libcurl3 cannot be installed (it gives me no reason). Must I rollback to Debian 9.9? ...
1
vote
1answer
32 views

Understanding fetching mutiple URLs and documents using curl

It's not clear to me how to fetch multiple documents using curl mainly because I do not fully understand the explanation in the curl documentation The curl documentation says: -o, --output <file&...
0
votes
0answers
20 views

Can't curl without port 80 open, but port 80 shows as open anyway

So I made a apache server and put a page up, and it should be accessible on port 80 (so default), and I should be able to curl it. Apache listens on port 80 (/etc/httpd/conf/httpd.conf) But when I ...
0
votes
0answers
30 views

Transfer multiple files using curl over TFTP [duplicate]

I have to copy files from a host computer(windows based) to a hardware (both are on the same network, the hardware is proprietary and have certain limitations). So , I run the TFTP server on the host ...
0
votes
1answer
27 views

How to import pgp keys from a search on an keyserver using curl?

Is there a standard method for searching and importing a pgp key using curl or wget? I was going through verifying the download with a gpg signed shasum256 file and encountered the problem of trying ...
2
votes
1answer
62 views

curl delete command won't work in scripted for loop

Is there any reason why a curl command won't work with variables? Here is my set up - I am not using real values as I can not expose client data and I have no test environment. You will notice that ...
0
votes
1answer
26 views

How can I extract status code digits from curl?

I am writing a plugin and I want to extract a status code from my curl request: curl -I localhost | grep HTTP; Right now I have % Total % Received % Xferd Average Speed Time Time Time ...
1
vote
0answers
29 views

Curl sftp download returns error 9, access denied to remote resource [closed]

I am having trouble downloading files with command-line curl from an sftp site. Files which I uploaded myself (by using the same account) can be downloaded again with no trouble. Files which were put ...
0
votes
1answer
38 views

Cronjob fetching JSON with cURL. Check if response isn't empty before writing to file

I'm running Ubuntu and got a simple cronjob fetching a remote JSON-file and (over)writing it to the server. */15 * * * * /usr/bin/curl -m 120 -s https://path/to/remote/json.json > /store/json/here....
0
votes
1answer
27 views

trim using sed to get the exact value from curl

I'm getting this string data from curl command {"password": [["passwordreal", "2035/01/01 00:00"]], "user": "user1", "address": "kobebkokoko.net"} How do I get passwordreal using sed? Example, ...
0
votes
0answers
15 views

Problem with the limit of requests api youtube v3 search

I execute the following command: curl -G https://www.googleapis.com/youtube/v3/search \ -d part="id" \ -d q="es-por-ti-juanes" \ -d maxResults="1" \ -d key="..........." \ -d type="video" \ -d ...
0
votes
2answers
54 views

Get web page complete data

I'm using busybox tools and I want to take all http links in a web page. I save an example link page by using curl or wget. However, it saves the page as html. How to do it with curl or wget commands? ...
-1
votes
1answer
14 views

how to download ebi fastq link via command line using wget/curl

I have loads of data (fastq) to download from ENA database. Example: ERS076383 ERS012262 ERS160574 ERS349280 etc Link to download via browser: https://www.ebi.ac.uk/ena/data/warehouse/filereport?...
0
votes
1answer
41 views

RH 7.5 Linux using curl with sftp to pull multiple files ending in a particular file extension

I am in a Red Hat Linux 7.5 environment. I am trying to write a curl script to pull/receive any file from a folder that ends with a particular file extension. Previously, I have written a script to ...
0
votes
0answers
22 views

Binary Output from Curl [duplicate]

When I executed the command: curl https://piwik.openstreetmap.org/piwik.php?idsite=1 I received a warning that binary output can mess up my terminal, which, yes it did having ignored the warning, so ...
0
votes
1answer
19 views

asus ac68 merlin curl ignore http_proxy

asus ac68 is a router. I have installed the latest firmware(merlin) 384.11. curl -V curl 7.64.1 (arm-unknown-linux-gnu) libcurl/7.64.1 OpenSSL/1.0.2r zlib/1.2.5 Release-Date: 2019-03-27 Protocols: ...
1
vote
1answer
104 views

Bash script curl input variable from command line

I would like to be able to pass in what environment when script is run. Like script.sh dev ($dev would populate appropriate URL in curl command in script). Maybe even print the environment as options ...
1
vote
0answers
66 views

Curl download speed restricted when down/uploading from stdin/stdout

I'm running 2 curl commands where one downloads all the data into stdout/in until the stack is filled and another uploading whatever is in it out but it seems like the speed is restricted. For the ...
0
votes
0answers
18 views

Automatically upload directory to dropbox in no time (whenever any changes done to that directory

I installed the following Script on my CentOS 7 terminal access. I'll use this script to upload specific directory from the Linux to dropbox. using the following command i can upload the directory ...
1
vote
0answers
21 views

After setcap on executable, curl_easy_perform throws out of memory error

I've cross compiled an executable to run on Debian Stretch that requires a specific version of cURL (greater than 7.56) to run, and needs specific capabilities during execution. So on the executable ...
1
vote
2answers
106 views

php curl not getting installed on Debian 8 [duplicate]

I am using linux debian 8. I have webmin/virtualmin installed and 1 domain is running over the server. Php version is 7.1. But, i can not run curl on my server. i tried to install curl but it throws ...
0
votes
4answers
49 views

how to capture IP address from info

by the following api we can get the info about master1/2 machines curl -sH "X-Requested-By: ambari" -u "admin"":""admin" -i http://192.23.39.2:8080/api/v1/hosts?fields=Hosts/host_name,Hosts/ip | ...
1
vote
1answer
17 views

Terminology used in the manual for the curl package

An extract from the manual for the curl package reads: Using --anyauth is not recommended if you are doing uploads from stdin, since it may require the data to be sent twice and the client must be ...
0
votes
2answers
38 views

Phantom binary installed with curl

I upgraded binary youtube-dl following this instruction. locate seems to find it, not ls, and it cannot be invoked. What is happening? /usr/bin $ sudo apt-get remove youtube-dl /usr/bin $ sudo curl -...
0
votes
1answer
284 views

Download ZIP file of private GitHub repository using `wget` like `curl`

There are already some questions with answers how to download the ZIP file of GitHub repositories, but they don't work if the repository is private. I know it should work with wget somehow since it ...
0
votes
1answer
52 views

How to send a file for single POST parameter with CURL?

I want to send myfile.json for one POST parameter while specifying explicit value for another parameter with CURL. Is it possible? Something like POST a=value1&b=<load and encode from my file....
-1
votes
1answer
48 views

Is there a similar tool like Curl but is already included in Linux?

I'm not sure if there is a similar command/utility which comes along with Linux distro CentOs, Ubuntu and RedHat without installing Curl. Basically I'd like to do a command like below curl -H ...
0
votes
0answers
14 views

curl command - any option for site RDW and site SDB

I have an ftp command and i want to change it and use curl instead, but i am not able to find any options for site RDW and site SDB. Is there a solution? My ftp command is similar with: ftp ...
0
votes
1answer
197 views

Update Failed: Download failed. cURL error 6: Could not resolve host:

I am getting the error "Update Failed: Download failed. cURL error 6: Could not resolve host:"  on WordPress on my vps server...I have also noticed it in other applications as well. As a consequence, ...
0
votes
0answers
142 views

How to pass JSON in a curl GET request?

I am trying to test a REST api. Using any other web browser, I can paste the URL into the address field and gt the desired result: https://some.company.com/SomeAppAPI?cmd=setSomeData&token=...
2
votes
2answers
44 views

JQ Linux JSON Parse Unknown Key

I want to build an automated script which builds an new VPS Server on the page vultr.com. They also have an API Access and I could create it and receive also anything I need. The problem is, vultr ...
0
votes
0answers
13 views

curl doesn't measure spent time properly

I need a shell script to get data from the URL and process it. curl "$Url" | jq '(..|select(type == "number")) |= tostring' > "$SCRIPTPATH/../output.json" Curl is used for getting data, all work ...
2
votes
2answers
146 views

Script a Github file download using curl where filename AND path are variable

I needed to script the install of the Digital Ocean CLI " doctl " tool from Github using curl, but there was a problem: The filename varied as it incorporated the version number- so hard-coding it ...
0
votes
1answer
42 views

How do I increment an integer in an URL?

I want to scrape a forum by using an API and curl. API: https://api.hackertarget.com/pagelinks/?q=websitetotest.com Here is the initial link: https://bitcointalk.org/index.php?topic=840124.0 ...
0
votes
0answers
55 views

How can I multithread a for loop to run 1000 times at once?

I have a for loop that is curling the contents of a file, the file contains 2 million web addresses. I woud like to create a for loop that instead of curling the address 1 at a time, curls 1000 at ...
1
vote
1answer
60 views

Unable to save Session ID using curl

With the request: curl -i -u pvserver:XXXXXXX 'http://192.168.2.42/api/login.json' I have this output {"salt":"uTxYWQDc9lWwsuHBRfkuTzJYG5M=","session":{"sessionId":2748768190,"roleId":0},"status":{"...
0
votes
0answers
52 views

randomly generated words to a form using curl

What I want to achieve is to post a form containing 3 fields (forename, surname and email) to a url, but i want the entries to be randomly generated. I want to generate a random word using; { head /...
0
votes
1answer
142 views

How to run shell command inside awk and redirect to another shell command?

I want to get particular string from the files downloaded using curl and redirect the downloaded file content to another shell program. Here is the code : curl "http://file-list-url" -s | awk 'BEGIN {...
0
votes
0answers
30 views

How to receive data from a Webpage and send it back to it in the same connection?

I am trying to fill a form of a webpage with curl and give it some arguments. Dumb enough, it also sends a hidden form in which there is an unique token which has to be sent back to the page, a so ...
0
votes
2answers
57 views

bash remove members Slack from channels using xargs and sleep?

I'd like to be able to remove a batch of people from a "private" Slack channel. Use case: whoops, I just added 137 people to the wrong channel! The Slack Member ID list is obtained from an Airtable ...
1
vote
2answers
551 views

Loop into JSON Array in Bash Script

I make a curl request to an API and get a json return with jq. The result { "errors": [], "metadata": { "clientTransactionId": "", "serverTransactionId": "20190318164551347" }, "...
1
vote
1answer
148 views

Save Request url in Curl output

The command below cats a file full of urls and feeds it into gnu parallel. I would like the output in curlresponse.txt to have also the original request url. How can it be done? cat urls.txt | ...
0
votes
1answer
686 views

Linux Shell - How to remove escape characters generated by JQ when json is read with sed?

I am trying to read a json file and use its output in jq to build another json, combining so said json file and other values, and pass it to CURL I read the file with policies=$( sed 's/\\//g' ...
-2
votes
1answer
482 views

How to send binary file URL in the curl command instead passing local path

I am trying to post a binary .apk file which is on s3 bucket to a POST API. Local way which I know is: curl -X POST https://xxx.example.com:443/api/storage/upload -H "Content-Type:application/octet-...
0
votes
2answers
507 views

Getting exit code from curl in bash script

I want to take the output of simple.sh, a script from the internet and check its exit code. I on OSX #!/bin/bash $(curl -s http://127.0.0.1:8000/simple.sh) if [ -z "$?" ]; then echo "Good" ...
0
votes
1answer
219 views

Curl giving different responses on connection timeout

I use Ubuntu 18.04 and I try to curl the unavailable resource like: curl 192.168.11.1 --connect-timeout 10 curl 192.168.11.1 --connect-timeout 35 Why does it sometimes respond with curl: (7) Failed ...
0
votes
0answers
25 views

Error making vince-perf_defconfig

When I want to enter the vince-perf_defconfig file in the terminal, I get an error message like this make vince-perf_defconfig ./scripts/fetch-latest-wireguard.sh: line 7: curl: command not found ./...