Stack Exchange Network

Stack Exchange network consists of 175 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.

3
votes
0answers
3k views

Curling a https url via a proxy results in NSS error 5938

A B2B partner needs to make a callback from a Redhat machine to an API method on our web server (Centos7). We added their IP address to our software firewall but nothing was going through. They ...
3
votes
0answers
452 views

round robin for curl and dnsmasq

I have setup dnsmasq to the basic configuration, pointing a file with two IP addresses. 10.0.0.1 a.b.c 10.0.0.2 a.b.c When I do nslookup or dig on a.b.c, I see round robin seems to be in effect (as ...
3
votes
0answers
2k views

cURL does not recognize certificate

At our company they enforce a web proxy which breaks SSL connections and replaces the certificate by its own fake certificate. (To be precise it uses a proxy cert which is signed by the company cert.) ...
3
votes
0answers
1k views

Difference between “curl -XPUT --data-binary @${file_path}” and “curl -XPUT -T ${file_path}”?

While using curl to POST or PUT a file to a url, there are two different ways to load the file content: -T ${file_path} --data-binary @${file_path} or -d $@{file_path} (for ascii data files) What ...
2
votes
0answers
92 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. ...
2
votes
0answers
91 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 ...
2
votes
0answers
440 views

cURL and wget cannot resolve hosts, but apt-get works

I've installed Ubuntu server 16.04 in a VirtualBox. If I try to install software with apt-get it works fine, but curl test.de or wget get.typo3.org/8.4.0 shows me that the host could not be resolved. ...
2
votes
0answers
2k views

How to avoid curl trying IPv6 name resolution

From a docker container when I try to curl 'another container name', curl first tries to resolve the name to IPv6. This causes few seconds delay because the web server is not reachable over ipv6. I ...
2
votes
0answers
283 views

Can I control number of TCP Connections per second in curl?

I am trying to make one traffic generator tool in linux centOS 6.5. I am using curl for this purpose. I can generate traffic from virtual interfaces using curl but I don't know if I can control number ...
2
votes
0answers
1k views

Problems uploading a file via WebDAV?

I've configured on my Linux server (SLES11) with IHS Webserver with WebDAV enabled. A file upload via curl is successful using a URL like this: $ curl --insecure --upload-file testfile.txt \ ...
2
votes
0answers
645 views

Nagios not running notify command

I am in the process of creating a notify command for our Nagios server to notify us via our Kannel SMS sender. This is what I got so far: /usr/local/bin/curl -v -G -d 'username=user' -d 'password=...
1
vote
0answers
81 views

GET via wget or cURL gives a limited response

I'm bumping my head on a simple HTTP GET request. Using a tool like Postman, I'm getting the full and expected response (an over 1 thousand lines xml document, displaying the details of my 60 albums) ...
1
vote
0answers
52 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 ...
1
vote
0answers
174 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 ...
1
vote
0answers
73 views

openssl hangs on server

I have a problem on the server. Commands wget, curl and dependent commands are not working when a request is via 443 port. Commands hangs on 2-3 minutes and after just say "time out": # curl -v ...
1
vote
0answers
2k views

gnutls_handshake() failed - why?

I am running the following command: curl --tlsv1.2 -v --cacert ./mycert.crt --key ./key.pem --cert ./mycert.crt https://thirdparty.url I received the certificate from the third party I am working ...
1
vote
0answers
2k views

curl fails TLS handshake… sometimes

I am trying to download Python 3.6.5 using curl as part of the pyenv script to make virtual environments. Sometimes it works, sometimes it doesn't. I pinpointed the command at which it fails to this: ...
1
vote
0answers
339 views

Static build of curl with openssl: `/lib64/libcrypto.so.10: version `OPENSSL_1.0.2' not found`

This error looks like this is not static build - and OpenSSL not inside of curl, but after configure among others I see: ... SSL support: enabled (OpenSSL) ... Build libcurl: Shared=no, Static=...
1
vote
0answers
574 views

how to make cURL send AUTH command for FTPS?

this is causing headache for a long time now. Situation: i have a virtual machine that sits behind a proxy that shields it off the internet. The Proxy seems to work fine. I want to use cURL to ...
1
vote
0answers
381 views

Using curl with certificates on Ubuntu 16.04

I'm trying to use the API for the Swedish payment service Swish on my Ubuntu server, but I can't get it to work. I believe the problem is with the certificates. I have generated a CSR (without a pass ...
1
vote
0answers
310 views

R: how to install RCurl on Debian Linux 9 (stretch)?

I have tried all kind of libcurl apt packages and so forth. I need RCurl for h2o in Debian Stretch. How can I install RCurl in Debian? ** R ** data ** inst ** preparing package for lazy loading ** ...
1
vote
0answers
272 views

Supplying curl with multiple options that require <file or input>

I'm trying to execute a curl command from the terminal. I need to provide HTTP authentication I need to POST a .jar file This works when HTTP authentication is disabled: curl --data-binary @~/file....
1
vote
0answers
716 views

Automatic Login with cURL without php

I'm working in a little project using a script to do scraping. I'm trying login in https://www.plusdede.com/login, it's a simple login with a numeric captcha. The code which is important is: <div ...
1
vote
0answers
294 views

Can I wget or download files that are not linked to from a server?

I have a url such as myurl.com/contents and I am trying to fetch all contents in the folder. Some files, such as myurl.com/contents/unlisted-file.1 are not linked to anywhere. These files are ...
1
vote
0answers
635 views

Posting file name and file contents to remote server via curl command

I'm trying to write a bash script that would post the name and content of a local file to a remote server via curl. Local file name has the following format: /tmp/DeviceID-Date.txt For eg. 178-...
1
vote
0answers
897 views

Curl fails on TLS connection: sslv3 alert bad record mac

I'm running a fresh debian stretch installation in a VM using QEMU on a Ubuntu 14.04 host. When I use curl on any HTTPS resource like curl -vL https://get.rvm.io/ I get this error: * Trying 2600:...
1
vote
0answers
43 views

What's wrong with my curl?

I'm trying to download some data from a VoIP phone on the network using the curl command without the certificate being validated, I've tried this command but it's just writing the text "Unauthorized ...
1
vote
0answers
282 views

Adding a postfix when downloading files using CURL if a file by that name already exists

I'm downloading files from a POST endpoint using a command on the form while true; do curl -O -J http://domain/endpoint; done This endpoint "returns" a new file on each POST call. Curl gives each ...
1
vote
0answers
201 views

Accessing external DNS from linux/debian server

I'm having trouble getting a curl response from an external server. I am working on a debian server I did not set up and the external resource (www.example.com) has be configured to not receive ping ...
1
vote
0answers
606 views

wget - How do I download webpages based on URL Pattern?

Consider a website www.music.com with the following directory structure: /piano /covers /Chopin apple.html bannan.js balloon.html index.html /Franz Liszt ...
1
vote
0answers
125 views

Rotate IPv6 for curl commands?

I have a bash script that needs to run curl several thousand times against different URLs. Each time curl is run, I want to use a random IPv6 address from the /64 that's assigned to my VPS. I read ...
1
vote
0answers
368 views

Extract contents of jar file to curl using scp

I have a jar file containing a javadoc tree on one box. I need to transfer it to another box and unpack the jar in a specific directory (which may not exist). I have the username/password of the ...
1
vote
0answers
92 views

Cron running tasks at second 26?

I've many vps with the same cron task sending data with curl every minute, e.g. date command output. So I'm receiving datetime from every vps and I just realized that one of them is running the cron ...
1
vote
0answers
41 views

some characters show after put objects on amazon s3

I use libcurl to put objects on amazon s3 service. Here is my original contents in a.txt: aaaaaaaaaaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbbbbbbbbb ...
1
vote
0answers
379 views

gnome software not working on fedora 24

Gnome software on fedora 24 is not working. It shows Detailed errors from the package manager follow: Curl error (28): Timeout was reached for https://mirrors.fedoraproject.org/metalink?repo=fedora-...
1
vote
0answers
741 views

How can I get a translated string from Google Translate with curl etc?

How can I get a translated string, e.g. English to Spanish, from Google Translate with some command line tools like curl? I looked at the page source but Google Translate doesn't seem to include the ...
1
vote
0answers
367 views

cURL: Java website not loading

I can access the configuration page of my device with no problems via web browser (on the GUI). But it doesn't seem to work by using cURL: luis@Fresoncio:~$ curl http://192.168.1.232 <html><...
1
vote
0answers
2k views

Curl fails with ntlm proxy

My work uses an NTLM proxy. On my Linux servers and workstations we us cntlm to authenticate. I'm not having any issues with yum,wget, or the web browser, but for some reason curl refuses to work ...
1
vote
0answers
1k views

curl --data-urlencode and underscores

I've been using curl -XPOST to post some links to a Telegram channel via a bot api/key, the urls are in form of https://site/x/pre_encoded_string, where pre_encoded_string is in form (real samples) ...
1
vote
0answers
128 views

How to get all files of a certain type from a virtual web path?

I try to use wget to download certain files from a website. But probably the virtual locations of the files do not represent their actual location. For example, if the link to the file is http://file....
1
vote
0answers
1k views

Using curl results in error: “Library not loaded: /usr/local/lib/libcurl.4.dylib …”

I had a few issues with the cURL library interfering with Homebrew. After hopefully removing the library (I no longer use it anyway), I started receiving errors whenever I used commands such as curl ...
1
vote
0answers
244 views

setting up pycurl for embedded ARM

I am working on a linux x86_64 machine, and I am trying to set up pycurl for an embedded ARM processor running petalinux. I need pycurl library before building the embedded linux image. I have cross-...
1
vote
0answers
120 views

Transparent proxy to other IP of thousand ports

I was bought a service that only allow a IP, the IP that i say, only one, but I need use this from more IP's. I think that I can install in this computer a system to do a transparent proxy for ...
1
vote
0answers
576 views

IPTable rules for transparent outbound proxy

I've recently installed MITMProxy (similar to Squid) which I'm currently using to route outbound HTTP requests from my Ubuntu machine to another server (adding a header along the way). When I use ...
1
vote
0answers
10k views

Linux curl request for SOAP webservice call

I have a SOAP webservice WSDL and when I make a call with SOAP-UI tool, it works perfectly fine.... Now, Im trying to mimic the same call using LINUX CURL but get a 404 error, Here is my CURL ...
1
vote
0answers
143 views

FreeBSD: spdylay build error

I try to install the latest curl updates from ports (curl-7.37.1_2) with HTTP/2.0 support enabled and I need to build spdylay for that purpose, but I keep getting the following strange errors and ...
1
vote
0answers
1k views

libcurl4-gnutls-dev : Depends: libldap2-dev but it is not going to be installed

I am trying to install curl in my ubuntu server as I was getting this error whenever I am compiling my C++ code - fatal error: curl.h: No such file or directory Below is the error: username@...
0
votes
0answers
12 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
0answers
13 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=...
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 ...