Questions tagged [curl]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
17 views

bash Script only executing first 2 curl commands and stopping afterwards

I have a text file which has few Url's salesData.txt http://localhost:9380/run?startDate=2018-12-01&endDate=2018-12-31 http://localhost:9380/run?startDate=2018-10-01&endDate=2018-10-31 http:/...
1
vote
0answers
43 views

Can GNU Parallel execute a bash script 25000 times per seconds and parallel processes?

I am testing my web server response. Well I have a computer with 15 CPUs and 30 GB memory. How can I execute the following bash command on this computer 25000 times per second? curl -Z url="...
0
votes
0answers
22 views

How to retry xargs commands that have failed up to 5 time

I am facing a challenge with my script. I am using xargs with curl to make over 100 000 curl command to an REST API, occasionally some of them will fail with 502 or 504 errors. What I need to do is ...
1
vote
1answer
39 views

Piping curl http://cheat.sh/python to less is showing strange ESC[38;5;246m [duplicate]

I am kinda new to Linux. My base issue: I need to show the output of curl cheat.sh/python like a man or less page, so that I can easily scroll up and down. What have I tried: curl cheat.sh/python | ...
1
vote
0answers
33 views

Combine gnu-parallel and curl in Linux

I'm testing my webserver and sending API Thousand of request to optimize my program with high traffic. Indeed I write two bash-shells but they not fast as I want any one can help me on this and let me ...
0
votes
2answers
33 views

Read and write to file using bash

Problem statement: Read a file line by line Execute a command on each file Print the line and output of command in another file Input file (urls.txt): www.google.com www.yahoo.com www.bing.com ...
-1
votes
0answers
47 views

Using wget to download from a URL embedded in a forum thread [closed]

I've looked at several Q&A related to this, and tried a few things, but I've not found anything that works yet. Here's the problem: A thread in a forum that I follow contains a "link"/objective ...
0
votes
0answers
34 views

Running of curl processes in parallel in bash

I think post my data by curl command in terminal at the time but thousands of times to get a good turn. I wrote the following bash code: contents=$(< /Users/Andrea/Desktop/data.txt) eval "...
2
votes
2answers
167 views

How to download tarball from Github

I have this: curl -L "https://github.com/cmtr/cp-go-api/tarball/$commit_id" | tar x -C "$project_dir/" I am just trying to download a tarball from github and extract it to an existing directory. The ...
0
votes
0answers
23 views

curl not displaying html content - linux [duplicate]

I am trying to print tool.html content using curl in my local apache server 135.0.0.1 it is printing the html tags but the html content is not being displayed. Below is the output of the same. [root ~...
0
votes
0answers
9 views

facing error while installing vlc through command line in RHEL 8

all the packages of vlc are installed successfully but only two files are giving error - Curl error (56): Failure when receiving data from the peer for http://free.nchc.org.tw/rpmfusion/free/el/...
0
votes
1answer
27 views

Curl Command (Beginners Linux)

I am attempting to use the CURL command to download the latest zip file (as of today it is FuelWatchRetail-03-2020.csv.zip) from this site. The command I currently have is as follows: curl https://...
0
votes
0answers
27 views

How to set while loop and define xml output as a condition to stop the loop from running?

I've been digging through a lot of feeds online for the past few days and I've found bits and pieces of what I'm trying to accomplish, but since I am very basic with scripting and xml I got stuck. I'...
1
vote
0answers
44 views

Download Windows ISO from microsoft using wget or curl

Objective: download the official Win10_1909 iso into linux directly via command line Source: https://www.microsoft.com/en-in/software-download/windows10ISO After selecting edition and language you ...
0
votes
2answers
53 views

Retrieve both HTTP status code and content from curl in a shell script

I want a script to curl to a file and to put the status code into a variable (or, at least enable me to test the status code) I can see I can do it in two calls with e.g. url=https://www.gitignore....
0
votes
0answers
55 views

curl max-time and connect-timeout not working at all

I am running curl 7.68.0 (x86_64-pc-linux-gnu) libcurl/7.68.0 and I am trying to set --max-time or --connect-timeout, unfortunately these values seem to do nothing. PoC 1: time curl -v -k -I --max-...
1
vote
1answer
38 views

openssl is not finding any certificates

When I use git or curl I get an error which may be related to certificates: With git: > git clone https://github.com/vim/vim.git Cloning into 'vim'... fatal: unable to access 'https://github.com/...
1
vote
0answers
35 views

Centos 7 curl error 35 and unknown cipher in list

I've tried to send a GET request to a website running HTTPS but always getting curl: (35) Peer reports it experienced an internal error. and I get this error with this only website, Youtube, Google ...
1
vote
1answer
29 views

curl prints its pid then runs in background

I'm experiencing something new with a simple curl request. The command is a plain call of curl such as this: curl http://example.com/endpoint/?arg1=val1&arg2=val2 The call is supposed to return ...
-2
votes
2answers
52 views

What does it mean that, with -X, you can change the method keyword curl selects, but you will not modify curl's behavior?

From https://curl.haxx.se/docs/httpscripting.html#More_on_changed_methods It should be noted that curl selects which methods to use on its own depending on what action to ask for. -d will do POST,...
2
votes
4answers
378 views

How can I check currently installed and in use versions of SSL and TLS?

How can I check currently installed and in use versions of SSL and TLS? Strangely I couldn't find an answer online. Using Ubuntu 18.04. Edit: Thanks all! I am asking this as I have trouble connecting ...
0
votes
0answers
28 views

curl is stuck when trying to get NameNodeStatus

we have two namenode in the cluster hadoop cluster this is good example of one of the name node that return good status first namenode machine IP - 92.3.44.2 curl -v http://92.3.44.2:50070/jmx?qry=...
0
votes
1answer
76 views

wget / curl is not following the redirect of my URL

If you are on the website there is automatically started a download of pdf: https://magazines-static.raspberrypi.org/issues/full_pdfs/000/000/308/original/MagPi89.pdf?1576682030 I was writing to ...
0
votes
1answer
46 views

What are -b and -c options for cURL?

When using cURL, what are -b and -c options? On man curl, there are these descriptions, but it's confusing for me. When they say "-c, --cookie-jar", "-b, --cookie", does it mean that we have to use ...
1
vote
1answer
356 views

Parsing JSON data from a curl API request

I'm using Shodan's API https://developer.shodan.io/api to get my current network alerts. I want to parse out the id for the alerts with jq. The curl request is curl -X GET -i https://api.shodan.io/...
0
votes
1answer
19 views

curling ESP8265 status Is:no such file or directory

I'm on OSX Mojave 10.14.6 I'm a trying to flash a newer firmware via OTA on an ESP8265 SoC embedded on a smart switch. I created a network with specific SSID and PSW. The ESP is connected to the ...
-1
votes
1answer
62 views

Scripting curl requests in bash

What is given: Statistic server which gives reply on how many ip addresses within a range correspond to a given rule. Server which is contacted through http using pattern: curl http://server/p?q=(...
0
votes
1answer
37 views

GPG error: “The following signatures were invalid” on Docker installation with cURL

I'm trying to install docker on my Raspberry Pi 4b (raspian 10 buster), but get this error on running the installation command as listed on the official website: ~ > sudo curl -sSL https://get....
-1
votes
1answer
221 views

cURL invalid payload

I'm writing a script to send a message to Slack using curl. Here's my code: @echo off @SETLOCAL EnableExtensions EnableDelayedExpansion SET topic="Fw: *** Subject: Detail|detail|more-detail|detail:...
0
votes
0answers
10 views

How can I debug a file being overwritten related to my curl installation?

It all started when I made a request with curl and noticed the output: curl: /usr/local/lib/libcurl.so.4: no version information available (required by curl) I followed CHENJIAN's advice from this ...
0
votes
1answer
35 views

replace a file if different after executing curl call

I have a url that I need to execute using curl. If the status is 200 then write the response in a temporary file. Now compare this temporary file with another file ("/opt/proc/config/init.txt"). If ...
0
votes
1answer
244 views

unable to curl on ip address however localhost is working fine

If i do curl on localhost then its working fine.However if i replace with system ip address its giving error. I have entry for ip address in etc/hosts curl -v https://<ip address>:9200 * About ...
4
votes
2answers
591 views

Downloading from a public server: SSL certificate problem: unable to get local issuer certificate

I want to download a file (https://discovery.ucl.ac.uk/1575442/1/Palmisanoetal.zip) from a public server via the R command temp <- tempfile() utils::download.file(db_url, temp, method = 'curl')...
0
votes
1answer
95 views

Why does curl -n fail in one script but not others?

Why does curl -n fail in one script but not others? curl 7.67.0 running on MacOS High Sierra The following code in one script: host="ftp.xxxxxx.com/public_html/" /opt/local/bin/curl -n -T $file $...
0
votes
1answer
45 views

Redhat 6- Normal user cannot resolve hostname through proxy but root can

I have a linux server (in Nutanix) where normal user cannot resolve hostname through proxy but root can, below is the result: backup user: [backup@~]$ curl --insecure --url "https://outlook....
2
votes
3answers
153 views

Why do wget/curl not download all source code of a web page?

I try to download the 1198 pages of signatures on the petition page at http://www.musikskatt.se/ (at the bottom) but both curl and wget leaves the div with the signatures empty in the resulting file. ...
0
votes
0answers
18 views

Upload my output to my aws webserver

I want to use the output data from my cmd to the Dashboard in a webserver in a table format. I ran this command: curl -s "http://3.135.18.96:8153/go/api/support" | jq '."Config Statistics"."Valid ...
-1
votes
2answers
61 views

how to understand tar minus

Lately I ran into a command: curl https://start.spring.io/starter.tgz -d dependencies=webflux,actuator | tar -xzvf - curl itself does not download the tgz file, since it is not wget. tar -xzvf does ...
1
vote
1answer
32 views

bash string substitution re-arranging string? [duplicate]

The problem I am facing is concatenating a variable that stores a command is not acting like a string when concatenating it with a regular string. An example of this is: base_url=$(curl -sIL --max-...
0
votes
1answer
39 views

Cannot locate “php-phalcon” package in APT, after cURL'ing the .deb file

In Debian 10, I follow the instructions here to a tee, I cURL the DEB file, then I enter apt install php-phalcon or php7.0-phalcon. Neither work! I don't know what's wrong It says: Unable to locate ...
0
votes
1answer
110 views

bash script variable from curl

I think I am missing something simple here, but here goes. Thsi works from the command line with no problem, it give me the required output. curl -X GET \ -H "X-Auth-Email: REDACTED" \ -H "...
0
votes
1answer
72 views

Shell script cUrl command with URL being a variable

I am working on a shell script that would place get requests until the status is 202. I have an issue with building the cURL command as mentioned below. Request is not being placed, even though the ...
1
vote
0answers
81 views

Issues interacting with Windows Shares without mounting

I am rebuilding a legacy system using Kubernetes, and do in some cases need to read and write files to Windows shares. I have tried working with our internal cloud providers to install various ...
1
vote
1answer
93 views

How to pipe git log to curl command

My goal is to perform a curl with the output of a command as curl payload, separately they work, but i have not been able to merge both things into one. This is my first command, it prints the ...
0
votes
1answer
165 views

curl: Argument list too long

I got an error for this line: curl -X POST "http://${AWS_LAMBDA_RUNTIME_API}/2018-06-01/runtime/invocation/$REQUEST_ID/response" -d "$RESPONSE" curl: Argument list too long How I could fix it?
0
votes
1answer
50 views

What does the parenthesis around a use flag means?

I want to build my curl with the quiche support. I have enabled the use flag in the package.use file, but it does not take effect. I noticed there are a pair of parenthesis around the use flag. What ...
0
votes
1answer
117 views

Curl command in bash CGI script not displaying the XML output [data not shown]

if I run this command in linux shell. curl=`curl --connect-timeout 4 -k -X POST -H "Content-type: text/xml" --data "<MyRequest><HeartBeat timestamp=\"1311157780201\"></HeartBeat><...
0
votes
1answer
67 views

Passing few curl variable to bash script

I would like to pass a few curl variables like time_pretransfer, time_connect in variables on my script. curl -skw "\ntime_connect: %{time_connect}s\ntime_namelookup: %{time_namelookup}s\...
0
votes
1answer
88 views

How to use pipes and stdin with commands that use - characters [duplicate]

I'm trying to curl a txt file and pipe it to pip. Example: curl -s URL | pip install -r - It doesn't work beucase the last - is not the curl output as I'd expect. I often have this issue with ...
0
votes
1answer
28 views

How to save cookies when the app write to document.cookie?

I'd like to understand how to save cookies that the application writes to document.cookie (https://developer.mozilla.org/en-US/docs/Web/API/Document/cookie), as I've noticed that the common methods ...

1
2 3 4 5
15