Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [curl]

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

2
votes
0answers
18 views

PHP Curl when accessing SSL slows down connection. How to correct?

After migrating to a new server, our scripts slowed down dramatically. Some troubleshooting showed that the slowdown occurred during Curl connections as the server was trying to load the SSL cert. ...
1
vote
1answer
18 views

bash curl post request set timeout

I make a post request from url like this curl -s -X POST http://site.com -d "data:data" The thing is that I want to set a timeout for the url I am sending the post request to. I tried -m 5, but ...
1
vote
1answer
57 views

curl doesn't work in bash loop

I run this command in a single bash file to post the data to a url and get the response curl -s -X POST $url -d "username=username" It outputs the response body. All good But I want to automate ...
2
votes
1answer
35 views

Capture http token with tcpdump

My server runs curl commands to some API using a token. For example: curl --header "Private-Token: aaaaaaaaaaaaaa" http://mysite.example.com/api/v4/any Can i capture with tcpdump all of the requests ...
11
votes
1answer
1k views

how to make Gnu/Linux trust a certificate that's trusted by Windows out-of-the-box?

There is a server with a broken SSL chain, as reported by this SSL check: I know this is a problem that should be solved on the server itself, but sometimes this is hard to have fixed (I'm not the ...
0
votes
1answer
57 views

bash and curl commands gets errors : bash: /dev/fd/63: No such file or directory and curl: (23) Failed writing body (0 != 8192)

I am trying to install Litespeed in my Debian instance under Google cloud. I try : sudo bash <( curl https://get.litespeed.sh ) my_serial_number I get : bash: /dev/fd/63: No such file or ...
1
vote
0answers
32 views

How to set connect-timeout value of curl more than 120 sec in linux systems?

Tried curl with connect-timeout value more than 120 sec but it is not waiting for specified time. It stops trying to connect after 120 sec eventhough inputted connect-timeout is 180 sec(more than 120 ...
0
votes
2answers
59 views

Make a list of URLs if webpages contain specific text [closed]

I am trying to make a list of URLs of webpages, based on whether the webpages contain the text "XYZ". The URLs are of the form: https://www.website.tld/page.php?var1=???&var2=static ??? is a ...
0
votes
1answer
61 views

How to download https file in AIX without wget and curl? [duplicate]

In an UNIX environment running AIX where I'm a not privileged user (without sudo) if I need to download a file from HTTPS server and there is no wget or curl... How I do it? Is there any replacement ...
1
vote
1answer
59 views

Variable inside a curl Array [duplicate]

How to put the variable "user" in this array. The way it is not it doesn't work sadly. The $user variable should be john.smith for example. I have the following output: curl --header "Authorization: ...
2
votes
1answer
86 views

Alternatives to cURL/wget for remote API calls

I'm on IBM AIX 7.1 where cURL and wget are not available. Also, I'm not in a position to install either. Are there alternatives that would be available that would enable remote API calls using GET/...
0
votes
1answer
11 views

MacOS parsing for ASN

I use MaxMind API to get IP Address data. What I am looking for is the country and the ASN. The MaxMind API works as follow: curl -s http://geoip.maxmind.com/e\?l\={APIKEY}\&i\={IP} And returns ...
-1
votes
0answers
26 views

Get URL content including parsed javascript

I know there are a lot of CLI tools to get data from URL like curl, wget, lynx and so on. Problem is that I need to get data that is created with javascript. For example URL outputs table with data ...
0
votes
1answer
118 views

curl in Jenkins,

What i want to do is: The 1st curl command output will be the input of the 2nd curl command... Have a jenkins build which originally runs a curl commands such as: curl -u $user:$PS -h "content-type:...
0
votes
0answers
32 views

Testing if iptables rules working on VirtualBox Linux VM

I have this specific set up I created to test squid cache intercept mode. I have created a VritualBox centos 7 SE linux VM on my mac. Disabled SE linux (set to Permissive) and disabled the firewall ...
-1
votes
0answers
31 views

Globbing error via Curl on SharePoint

I would like to download all the zip files in a SharePoint directory. The zip files are named in the following format "0111A.zip". I am able to download a specific zip file via this: curl -U ${...
0
votes
1answer
167 views

What does curl -sS means?

man curl says: -S, --show-error When used with -s it makes curl show an error message if it fails. If curl -S (uppercase) will show error instead an alleged default silent mode, then I don't ...
0
votes
1answer
26 views

curl download file and name it <custom-name>.<provided-extension>

Say I have a bunch of URLs like this: https://domain.com/foo/bar/2d9ec0354908e055acf372 From the URL I don't know what the extension is, and I don't have any other "frontend" information to tell me ...
1
vote
1answer
242 views

using variables inside the curl command not working in bash script

I am trying to write a bash script to update certain nodes in my repository. I wrote below script, but it does not seem to be working when I use variables inside curl. Below is the code. I tried all ...
22
votes
6answers
2k views

What are the alternatives for checking open ports, besides telnet?

We can use the following in order to test telnet VIA port; in the following example we test port 6667: [root@kafka03 ~]# telnet kafka02 6667 Trying 103.64.35.86... Connected to kafka02. Escape ...
0
votes
0answers
34 views

curl stops working when used in combination with xargs

I need to check a list of domains in parallel. So I was planning on using curl and xargs. This is check.sh: #!/bin/bash domain=${1?Pass the domain as a parameter} curl -o /dev/null --silent --write-...
2
votes
2answers
197 views

Run curl commands in parallel using xargs with inputs from csv

I have a csv file with several columns including a sequence number and an image URL. The file is 450+ lines. 1,text1,text2,http://image_a.jpg 2,text1,text2,http://image_b.jpg 3,text1,text2,http://...
0
votes
0answers
83 views

Curl 7.27.0-1 Symbol Resolution Failed Error

On an AIX 5.3 I have installed curl 7.27.0-1 through .rpm's and if I try to use it by issuing a curl -V command I am getting this error: Could not load program curl: Symbol resolution failed for /opt/...
1
vote
1answer
32 views

why do I get the monitoring information from curl in some case and not in other case?

When I run the following command in an interactive bash shell: $ curl ipinfo.io/ip 123.45.67.890 If I create /etc/cron.d/myjob: 24 * * * * tim ( date && curl ipinfo.io/ip && date ) &...
1
vote
1answer
62 views

Difference between cURL's cookie-jar option and browser cookie?

I'm trying to login to a website using curl and HTTP requests. With the first http GET request I add -c cookie.txt to the command to save the cookie to a file. For the second curl POST I add -b ...
0
votes
0answers
34 views

Api to Delete pull request in bitbucket

Need a api which deletes particular Pull request gone through official document https://docs.atlassian.com/bitbucket-server/rest/5.15.0/bitbucket-rest.html#idm45622371702720 Tried :- curl -u ...
0
votes
1answer
17 views

Comparing the `time_total` of two curl requests to different sites

I know that I can get the time_total of of curl request by using this command: curl https://www.google.com -s -o /dev/null -w "%{time_total}\n" Is there any way for me to easily compare the results ...
0
votes
2answers
112 views

Concatenate and use multi line variable in multi line curl execution

With this code #!/bin/bash set -x PROPERTIES="MAINTAINER=Self, My" while IFS='=' read -r key value do ADDITIONAL_PARAMETERS+="-F variables[${key}]=${value} " done <<< "${PROPERTIES}" #...
0
votes
3answers
111 views

Verify if a URL exists

I would like to verify if a URL exists without downloading. I am using below with curl: if [[ $(curl ftp://ftp.somewhere.com/bigfile.gz) ]] 2>/dev/null; then echo "This page exists." else ...
0
votes
0answers
118 views

Update curl and libcurl on Debian stretch

I got a docker container running Debian stretch: PRETTY_NAME="Debian GNU/Linux 9 (stretch)" When i try apt list -a curl I get Listing... Done curl/stable,now 7.52.1-5+deb9u7 amd64 [...
1
vote
1answer
23 views

Transferring a file to two destinations efficiently

At present I am creating a backup file and using curl to send it to a remote host, using: tar -cvzf - ./folder | curl -u user:pwd ftp://example.com/folder/backup.tar.gz --ftp-create-dirs -T - I also ...
0
votes
1answer
36 views

Fetching title of browser

[Fetching user title] Seen a post prior of someone posting how to do it by single account I wish to do this from the range 1-1000 and have it output to >> .txt Example: x@nine:~# wget -qO- 'http:...
2
votes
0answers
52 views

libcurl post request from debian 7 to debian 9 gnutls handshake error

I have a problem with libcurl returning an SSL error, let me describe the situation: There are two machines with Debian, the client is Debian 7 and the server is Debian 9, the client uses libcurl to ...
0
votes
2answers
375 views

Curl : Read headers from a file and use them in a cURL command

I have a bash script with the following curl command : curl -v -X GET https://example.com -H ~/Desktop/headers.txt -o ~/Desktop/file.txt When i run the bash script i am getting unothorized 401. ...
-4
votes
2answers
107 views

Automate the command curl to download multiple URLs

How can I run curl on multiple URLs example: curl https://google.com/1 curl https://google.com/2 curl https://google.com/3 I would like to automate curl every 60 seconds.
1
vote
1answer
39 views

Cron - crontab executes half of bash script

I have a bash script named testScript.sh that looks like this : #!/bin/bash curl -X GET https://www.example.com -o ~/Desktop/testFile.json curl -X POST -d ~/Desktop/testFile.json http://www.example2....
1
vote
1answer
47 views

Store a file on server with curl command using post method like scp? [duplicate]

Like this: cat tmp.txt | curl --post domain.com/file-to-store I want to store content of tmp.txt on my machine to server using only terminal. Is it possible?
2
votes
2answers
54 views

Downloading using curl, username and password required (cookie, phpsessid, etc…) [closed]

I am trying to download files using curl and chrome extension called CurlWget. When I click on a file to download it, I get this message: wget --header="Host: www.dummy-website.com" \ --header="User-...
0
votes
1answer
86 views

The same curl binary shows different version of openssl on 2 different servers

so I have built curl (possibly incorrectly) on debian 9 x64, and after curl -V command I can see that it uses the new version: OpenSSL/1.1.0f After that, I copied the very same library into ...
1
vote
2answers
405 views

Streaming Data to REST Service Using Unix Pipes

Based on an answer to another question I am using curl to stream the stdout of one process as the entity of a POST request: myDataGeneratingApp \ | curl -H "Content-Type: application/json" -H "...
0
votes
0answers
500 views

curl: (35) error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure

I am using the curl ftp with ssl.the command line are as below. ./curl -v -T /tmp/resolv.conf -u user:passwd --ssl -l --insecure ftp://55.92.74.251:7020 the results are as below. ./curl: /...
1
vote
0answers
100 views

How to cross compile curl with ftps?

The status of configure are as below. curl version: 7.50.0 Host setup: arm-arago-linux-gnueabi Install prefix: /home/calvin/Downloads/ConnectedDVR/car_dvr_rdk/target/filesys/opt/dvr ...
0
votes
1answer
251 views

Using netcat and curl together in a bash script

This question is more related to infosec, but I can't seem to find a workaround in automating the following process: There is a cURL command which triggers a connection to the netcat. Without ...
0
votes
1answer
28 views

using curl with ${=(System.nanoTime())} inside req.xml file

i want to be able generating system nano second sequence when using curl my code is like this: curl -X POST -H 'Content-type: text/xml' -d @req.xml server_URL > result.xml the req.xml contains ...
1
vote
1answer
210 views

Execute as fast as possible many curl commands

I am gathering some data locally at home on a Raspberry Pi and I want to send the data as fast as possible to a REST API (which I own) on a server on the web. The locally gathered data could flow as ...
0
votes
1answer
41 views

curl from sitemap.xml?

I would like to curl a list of URLs (Namely as defined in https://example.com/sitemap.xml The closest I've been able to get to this goal is xargs curl --referer https://mywebsite.ca --user-agent "It ...
0
votes
1answer
121 views

Manual install of curl can't find openssl

My system (Centos7) install of curl doesn't support https. So I followed this answer downloaded from source and installed myself, using the ./configure --with-ssl option. I got the following warning ...
2
votes
1answer
35 views

Generating quoted command arguments

I'm working with a HTTP API that demands a very particular set of signed headers + JSON body. And I really want to cURL it for debugging and sanity in general. So, I've written a small script that, ...
0
votes
1answer
123 views

cURL “[skips] unknown form field” when passing semicolon-delimited string as form data

Problem I'm attempting to use cURL to POST form data to an API. The API's documentation states that it accepts multipart/form-data content types. Since this is part of a script, I'm trying to build ...
0
votes
0answers
337 views

curl: (25) Failed FTP upload: 553

I'm tyring to upload to a vsftpd ftp using curl with this line curl -T "$ATTACHMENTS_DIR${file##*/}" ftp://10.0.13.52/ -v I have enabled all the anon settings, I'm just creating a test script so ...