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 data transfer utility used for a multitude of network=related applications (such as scraping data).

1
vote
0answers
19 views

How can I sort this JSON data?

How can I sort this JSON data? Hello, I am curling a web service and I get this output as JSON using curl and jq. How can I sort the list by percentage, ascending or descending? { "result": { "...
1
vote
0answers
51 views

Why dosen't curl seem to work behind a proxy?

When using curl behind a proxy, curl -O -fsSL https://storage.googleapis.com/tensorflow-serving-apt/tensorflow-serving.release.pub.gpg -v -k -x http://xxx.xxx.xxx.xxx:8080 I've got an error as ...
0
votes
0answers
9 views

Simple HTTP response: why does this work with Python2 but not with Python3 [migrated]

With the following code, running with: uwsgi --socket myapp.sock --plugins /usr/lib/uwsgi/plugins/python_plugin.so \ --module wsgi --chmod-socket=664 I don't understand why this gives me GET and ...
0
votes
0answers
37 views

Different response between curl and openssl s_client

I'm having a headache with some results. Running the following command results in an HTTP 200 response: $ curl -v -L www.example.com >/dev/null while running this, and using the exact headers ...
0
votes
1answer
501 views

How to integrate cURL on my public_html?

I do have this folder structure for my website: \index.html \php\some-php-files.php \js\some-js-files.js What I want to do is, I want to use a cURL command, which I usually use it on the terminal/...
1
vote
1answer
67 views

gnutls_handshake() failed: Error in the pull function

I have a problem with my Ubuntu (Ubuntu 16.04.5 LTS) server. It is very strange. When I try to use any tool for fetching a specific URL over ssl it fails. Examples: CURL curl -v https://www.netonnet....
0
votes
0answers
25 views

wget/curl do not write to file until download is completed

I am trying to run wget/curl every few seconds to cache a HTTP file that is constantly changing (dynamically generated file, different on each HTTP request). origin fetch is a bit slow (~10s) and ...
0
votes
1answer
21 views

How to recursively upload a directory which has directories and files to a server through HTTPS using curl command?

This is the command I am using: curl --insecure -i https://XX.XXX.XXX.XX/project/conatinername/foldertobeuploaded/${file}.html -X PUT -H "Content-Type: text/html charset=UTF-8; -H "Content-Length:0" -...
0
votes
0answers
8 views

How to find bottleneck for parallel curl command?

I got curl runing like this: parallel -j0 curl -x 10.9.8.4:8080 --retry 1 --connect-timeout 3 -I https://{} --output {} which results in 1000 parallel jobs. I've already incereased ulimit -n to 4096 ...
0
votes
1answer
24 views

Different download tools result in different MP3 checksums [closed]

I wrote some code for downloading podcasts and noticed that the checksums of files I downloaded with it didn't match those of files downloaded using other methods. Initially I thought there was a bug ...
0
votes
1answer
36 views

curl to download file located at github

I would like to donwload openjdk11 using cURL from github but the download stops just after few seconds, this is what I tried: curl -o openjdk11.tar.gz https://github.com/AdoptOpenJDK/openjdk11-...
-1
votes
2answers
45 views

Curl command what do I make wrong? [closed]

I get: root@dm820:~# ExecStart=/usr/bin/curl'https://dynupdate.no-ip.com/nic/update' --header "Authorization: Basic <$xxxx:$xxx>" -d 'hostname=<hostname>.xxxx.ddns.net' -sh: --header: ...
0
votes
1answer
53 views

Create a crontab script with curl

Trying to set a cronjob to use with curl. Want to update IP on noip.com. The command below gets the IP from noip.com but does not update it with my servers ip. I mean: when the IP is not updated then ...
0
votes
1answer
101 views

Windows 10: associate a command to “all” files

In windows machines, I need add a "right mouse" option to "all" data files (in concrete, all image formats and text files with extension .txt or .html, but add it to all files is also acceptable ). ...
0
votes
0answers
77 views

curl proxy error caused by no_proxy or http_proxy

When I connect to my internal web server I get a proxy error. For details see below. I narrowed the issue down to the no_proxy or http_proxy environment variables that I have set to ensure I can ...
0
votes
1answer
93 views

Issue with replacing Json variable with shell script value using curl

#!/bin/bash #CONFIG_FILE_PATH is the path of the json file as argument while running the script CONFIG_FILE_PATH=$1 CUST_NAME=$2 curl -X POST -i -H "Accept: application/json" -H "Content-Type:...
0
votes
0answers
84 views

cURL: curl: (18) transfer closed with 96671047906 bytes remaining to read

I am trying to download a very massive file (~92Gb) using cURL: curl -L -o 'file.tar.gz' -C - http://abc.dummy/file.tar.gz and constantly getting into: curl: (18) transfer closed with ... bytes ...
0
votes
1answer
19 views

How can I get a total of all asks and bids from Binance using this curl on Linux?

This curl input will output a nice list of bids and asks from Binance's API: curl https://api.binance.com/api/v1/depth?symbol=ETHUSDT | jq But is there a way to calculate the total of all those asks ...
0
votes
1answer
13 views

Handline curl GET request with spaces

Here is the command i am using to get the data. Tried using %20, + and also quotes. Nothing seems working. curl -g -v -H "Authorization: "XXX" --request GET \ --url https://insights-api....
0
votes
1answer
76 views

Curl dosen't work localhost subdomain

I am using localhost subdomain. subdomain is set by apache like this. It works well for web browser. <VirtualHost *:80> ServerAdmin webmaster@dummy-host.example.com DocumentRoot "/...
0
votes
0answers
27 views

CURLE_NOT_BUILT_IN Error in Linux

curl_easy_setopt(Config->hHandle->curl, CURLOPT_SSL_CTX_FUNCTION, NULL)) is returning CURLE_NOT_BUILT_IN error in linux, where in Windows (Visual Studio) its working fine. I built libcurl in ...
0
votes
1answer
54 views

how to make curl request undisturbed in a bash script?

In a bash script, I want to make a curl request that the user should not disturb. trap "cleanup" 1 2 3 13 15 TMP_OUT=$(curl -H "Content-Type: application/json" -X POST -d "$DATA" "${HOST}:${PORT}"'/...
0
votes
0answers
77 views

Git for Windows Installation: Curl is not working?

I was following this step-by-step instruction (and I did everything as written there) and at the step 5 when checking Curl with curl --versionI got 'curl.exe' is not recognized message. Why? What ...
0
votes
0answers
14 views

converting cmd commands into windows version

I started learning cURL and graphQL. Book tells me I need use this command line in terminal $ curl -H 'Content-Type:application/graphql' -XPOST https://www.graphqlhub.com/g\ raphql?pretty=true -d '{...
0
votes
0answers
26 views

How to upload a tar.gz file to server through curl library: C/C++

I have a filename.tar.gz file in my local linux machine, which contain the list of jpg images and wanted to upload a file through POST method to the server through libcurl in C++ program. Need to ...
0
votes
0answers
130 views

How to use a bash variable for the @filepath in a curl command

I am trying to write a bash script to run a series of curl commands. The command I am trying to run is this: curl -XPUT $URL'/test/' -d @$DATA_DIR/index-settings.json This is my bash script #!/bin/...
1
vote
0answers
100 views

Curl PUT “Method not allowed”

I'd like to simply store a file using curl with PUT metchod to my home apache web-serwer running on Windows 7. When i issue a simple command like: curl --upload-file /path/to/file/badname --url http:...
0
votes
0answers
128 views

HTTP status code generated by libcurl

Is there any case libcurl outputs HTTP status codes other than 000 in the following patterns? My app(a client sending HTTP requests using libcurl) and a server are disconnected. My app and a server ...
0
votes
1answer
35 views

Emulate console login request to router

I am trying to enter into my router's settings from the command line in my Ubuntu machine. It's not one of those expensive router models that has a specialised console port, but rather a "normal" for ...
0
votes
0answers
43 views

Is there any command line tool that can be used to save the whole webpage to read in offline mode later?

When reading a webpage in Firefox/Chrome, one can press Ctrl+S to download the webpage with its contents (including CSS, JavaScript, images, etc...) for reading it offline later. I wonder if there is ...
1
vote
1answer
66 views

Is it possible to use afplay to open a URL instead of a file on disk?

I would like to use afplay to open a URL instead of a file. The help page only says: Audio File Play Version: 2.0 Copyright 2003-2013, Apple Inc. All Rights Reserved. Specify -h (-...
1
vote
1answer
240 views

Upload file to ftps from command line

I need to upload single file to ftp on port 21. I used this: curl -T testFtpFile ftps://host -P 21 --user my_user Bu i am receiving: Failed to connect to host port 990: Connection refused How can I ...
0
votes
1answer
104 views

curl and wget not working with https sites after upgrade to ubuntu 18.04.1

Seems to be a openssl related issue. Anyone have any ideas as to what this is? Note that the url works in a browser. With wget: # wget -d https://deb.nodesource.com/setup_8.x DEBUG output created ...
0
votes
1answer
51 views

Pass cronjob output as parameter to curl

I have cronjob that takes hourly backup. Now I want to pass any stderr to an API. 0 * * * * /usr/local/sbin/script.sh 2>&1 | curl -k -X GET "https://192.168.0.25/path/of/joomla/instance/index....
0
votes
0answers
66 views

Bulk file download of Wireshark attachments

Many people post capture files to Wireshark bug reports (https://bugs.wireshark.org/bugzilla/), and these capture files are very useful for testing purposes. Unfortunately, there is seemingly no easy ...
0
votes
1answer
24 views

Prevent wget or curl from removing “../” from queried URL?

Prevent wget or curl from removing "../" from queried URL? The following wget query using ../ to directory traverse: wget http://192.168.0.24:7002/../../../../../mydir/myfile.txt results in the ...
1
vote
0answers
8 views

Can't connect to device on separate AP

Short version: If I am connected to my main router and the other device is connected to a secondary AP (connected to the main router/modem with an Ethernet cable), I am unable to connect to the device....
0
votes
1answer
10 views

Curl argument in nvm insallation

The node version manager (nvm) package (https://github.com/creationix/nvm) uses the following command to install the package: curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/...
0
votes
0answers
26 views

Ensuring minimum encryption for curl on FreeBSD and other OSes?

I'm trying to write code that sets strong-ish security by default and is also relatively future-proof so far as curl is concerned, meaning it doesn't need an update if TLS 1.4, 1.5 etc come into use ...
1
vote
2answers
42 views

See if Minecraft Server is online with Linux Terminal

a program I'm writing for someone needs to be able to tell whether a Minecraft server is online or not. It would also be great if it could tell how many players or what players are online. I'm not ...
2
votes
1answer
363 views

Unable to receive response to curl request against private IP address of computer on OSX

I am experiencing an interesting issue that I am struggling to get to the bottom of and would welcome any insights into what might be going on. I am running a Macbook pro on OSX 10.13.6. My issue is ...
0
votes
0answers
316 views

Find path to cURL?

My phpinfo(); shows cURL is installed on the server but when I use the command /usr/bin/curl it returns /bin/sh: 1: /usr/bin/curl: not found. Now when I type which curl, it doesn't return anything. ...
0
votes
1answer
2k views

How can I upload a file using `curl` instead of the form?

I have a client who's customer uses a third party clearinghouse to receive invoices. We can do this manually by exporting our data to XML, going to a particular website, and uploading the file. The ...
2
votes
0answers
1k views

How to download all files and folders from artifactory using curl command?

We are using artifactory for uploading and downloading project dependencies. Able to upload the required content using curl script having parameter "--upload-file". Now, I want to download required ...
1
vote
1answer
193 views

how to install terraform on linux

I'm trying to install terraform on linux but getting and error curl -o https://releases.hashicorp.com/terraform/0.11.2/terraform_0.11.2_linux_amd64.zip its giving error as curl: no URL specified! ...
1
vote
1answer
130 views

curl / wget is adding an extra ^M when I append data to a file

Something is buzzing me about this. I'm trying to download two different hosts files into one, if I do this serperatly then everything is fine, but when I append the firs to the second a strange ...
0
votes
3answers
80 views

OS X terminal: stuck in a “>” line

I trying to execute a Curl command (to ElasticSearch REST API) that looks like: curl -X GET "localhost:9200/_search”?pretty -H 'Content-Type: application/json' -d' { "query": { "match_all": {} } } '...
0
votes
1answer
104 views

How to override environment path variable to call curl from custom path instead of system32 path?

I have a path for folder containing curl.exe file (C:\My\Custom\Directory\) added to Path Environment Variable. The problem is that when I call curl from command line, it runs another curl executable ...
1
vote
1answer
645 views

cURL with SFTP via port 22 command line not supported/enabled

I'm struggling coming up with the right command to connect to a secure FTP server via port 22. When I'm connecting via Filezilla it works with username/pwd and port. After several attempts I ended up ...
9
votes
1answer
6k views

'http" not supported or disabled in libcurl

I am trying to run a curl command and getting this error: 'http" not supported or disabled in libcurl I looked where I have curl.exe, found it in C:\Program Files\GDAL and deleted it. The error ...