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 an HTTP client library and command line tool.

0
votes
1answer
17 views

Curl + Socks5 - escape authentification data

I'm trying to use Curl with Socks5 proxy which needs authentication: curl -v -x socks5://user:password@PROXY_SERVER_IP:PROXY_PORT http://checkip.amazonaws.com However, my login is email address and ...
3
votes
2answers
8k views

Add SSL certificate after curl error: “unable to get local issuer certificate”

I'm trying to access a partners SOAP API, for that goal I made a CSR and received a CRT. I've made a PEM file with my key and the CRT: cat mycert.crt mykey.key > mycertandkey.pem When I try to ...
0
votes
1answer
5k views

Compile curl with openssl

I'm trying to compile curl with openssl support and though I've tried for hours I still cannot figure out what I'm doing wrong. Here's what I did: compile openssl like this: cd /usr/local/install/...
1
vote
1answer
985 views

How to install company proxy certificate

My CentOS 7 server which is in AWS private cloud(company network), is unable to connect to some sites. After some work I managed to narrow the problem down to following problem. The following ...
2
votes
1answer
3k views

Determine which TLS version is used by default (cURL)

I have 2 servers that both run curl 7.29.0 and CentOS 7. However, when I run the following command I get 2 different results: curl https://tlstest.paypal.com PayPal_Connection_OK ERROR! Connection ...
-1
votes
0answers
13 views

Curl to invoke-Webrequest [duplicate]

Friends can someone help me converting this below to powershell invoke-webrequest curl -k --user <admin user>:<admin password> ` -X PUT -H "Content-type: application/json" -H "Accept: ...
1
vote
1answer
556 views

Converting curl request to powershell using invoke-webrequest

I'm struggling to try and convert the following curl request into powershell using invoke-webrequest: curl -X PATCH "http://172.28.36.62:8080/api/3/http/upstreams/my-api/servers/5" -H "accept: ...
5
votes
2answers
2k views

cUrl for an HTTPS address/domain times out unless previously accessed from browser

I've lost a couple days to this problem and hope it sparks a thought from someone. I am integrating several systems together using Powershell scripts. One of the two services I am connecting to (...
0
votes
1answer
67 views

curl bash script works fine in shell but not work in cronjob

I have a script using curl to do the job and set into crontabs. Things were fine on redhat 7.5+ or CentOS 7. But in redhat 7.2, the script turned into a junk and never output a thing from the curl ...
1
vote
1answer
58 views

Is it possible to extract a signed message from an SSL request?

Given any HTTPS server, say google.com, can we extract the payload/response and the signature for that data? The purpose would be to make a request, and obtain a data file and a signature that could ...
1
vote
1answer
3k views

GET to NGINX reverse proxy works but POST gives me a 502 Bad Gateway Response

I am using NGINX as a reverse proxy and just put up a new service written in Go. The service has two endpoints GET /tracking/ping POST /tracking/customer In NGINX, I am using the following to ...
0
votes
1answer
975 views

CURL isn't running from Crontab

Here is the output. Not sure if cron isn't running or other issue. If I issue curl --silent http://..../scanner.php from terminal, I'm getting desired output. Actually scanner.php do some check and ...
1
vote
1answer
38 views

413 error in apache even though my POST is much smaller than the max limit

I have asked this question on stack overflow as well. I have an apache server and a fastcgi script. When I try to send POST request to my script, it fails giving me the 413 error. If I send in no ...
40
votes
2answers
129k views

Curl: disable certificate verification

I am developing and I need to access https://localhost. I know the certificate will not match. I just want curl to ignore that. Currently it gives me the following error message: curl: (51) SSL peer ...
0
votes
1answer
43 views

curl “No route to host” or “Connection timed out” but python httplib works

I have qemu guest instance which has an interface with 192.168.0.4 static ip address. Also there is virtual interface tap0 without ip address and br0 which has 192.168.0.3 ip address on the host. ...
0
votes
0answers
11 views

Install GeoTrust SSL CA - G3 certificates - curl error

I have this curl error when run a webservice (centos 6): Initializing NSS with certpath: sql:/etc/pki/nssdb CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none Peer's certificate issuer is not ...
0
votes
1answer
974 views

Why is curl requests from terminal always gives X-Cache-Status: MISS

I have set up nginx reverse proxy and added caching to it using nginx caching. I can verify whether the requested copy is cached or not using added header. add_header X-Cache-Status $...
0
votes
1answer
1k views

how to make curl uploads faster with firewall

We recently moved a new server and are facing the slow upload issues . We suspect this because of firewall . how do I make sure applications like ftp,curl become faster with firewall. Any inputs ...
1
vote
1answer
977 views

SSL connection to Thin through vagrant

I'm running a Rails app that forces SSL and uses HTTP basic authentication inside of a vagrant VM. If I try to make a curl request to the app from my host machine I get curl -k --verbose https://[...
0
votes
2answers
482 views

Curl through intermediate server

I need to send PUT/GET/POST request with curl through a custom port from client1 to server2. However, server2 only accepts these requests from server1, and denies client1 if connected directly. What ...
0
votes
1answer
382 views

Issue to get Cookie: JSESSIONID and auth_cookie

I wanted to execute one API using the command line but need to pass Cookie: JSESSIONID=<>; auth_cookie=<> value while executing it. We have CAS authentication for the target API. Please let me ...
0
votes
1answer
1k views

curl cookie and cookiejar trouble

I've got a script that curls a site using a specific cookie value in a cookie file. When I run this on my local system, the server returns the same value to my cookie jar, as per my expectations. When ...
1
vote
2answers
1k views

Curl - download file range

I'm trying to download a range of files using curl. curl -R -O -z /dir/file1.png http://somesite.com/file[1-100].png The problem I'm having is how to make the "file1.png" change to the approperate ...
0
votes
0answers
203 views

CentOS 7: curl and wget not working

My problem is that curl and wget usually fail to retrieve more than just the first part of any given file, and often nothing at all. Both have worked previously on the same server, and nothing else on ...
1
vote
2answers
243 views

Https connection, TLS hangs and eventually fails SSL_ERROR_SYSCALL

I'm trying to correctly diagnose an issue where the server i have access to doesn't seem to be able to contact another server on the internet over port 443: ~$ curl https://mydomain.co.uk -vvv * ...
0
votes
0answers
27 views

Execute custom code when crontab fails

I am trying to post crontab error messages via cURL to Discord/Slack rather than email. Is there any way to do that? I have been searching about this, but I haven't found anything like it on google. ...
0
votes
1answer
55 views

automatically detect an apache server running on a specific vm and zone in Google Cloud Platform

Note: This is a self-answered question, which is allowed here. If you have better solutions go ahead and post them. Hypothetical automation for a web-based cloud school needs to test if students ...
1
vote
1answer
46 views

curl resolving invalid hostnames to own IP

When I curl an invalid domain, I get a response from my own webserver. Ubuntu 16.04.5, curl 7.47.0 For example: root@l ~ # curl -v foobar.x * Rebuilt URL to: foobar.x/ * Trying 148.X.X.X... * ...
0
votes
1answer
1k views

unable to find ecdh parameters

I'm working on an SLES 11 SP4 box and trying to connect to the host api.onedrive.com. Since a few days this connection is broken and returns with: # curl https://api.onedrive.com curl: (35) error:...
0
votes
2answers
1k views

how to use quoting and escaping with bash

I was given a list of urls that are generating 404 errors as reported to us by google. I can test a url with curl (from the command line ) like this: curl -k --user-agent "Googlebot/2.1 (+http://...
0
votes
2answers
1k views

Check whether CDN is working or not

Is there any way to find whether the static content is being served by CDN or not. Using curl, can i find whether the static file is being served by CDN or by the webserver.
1
vote
1answer
117 views

Curl verify certificate improperly

I used curl to launch a https request to download the file. I used below command: curl -v -o Output.pdf https://otherdomain.com/upload/manual-8mm-f35-csii-vdslr-5.pdf The result I get is: ...
1
vote
1answer
60 views

curl resolves all non-SSL URLs to 127.0.0.1 and port 8080

I'm executing curl and no matter what URL I point it to, it always tries to connect to 127.0.0.1 and port 8080: $ curl -v http://asdfsafzsdfsdf/ * Trying 127.0.0.1... * connect to 127.0.0.1 port ...
0
votes
0answers
114 views

How Does curl over HTTP Know Where to Respond

This might sound like a silly question that is probably just part of the HTTP protocol, but might be important to debugging an issue I'm having. We have some PHP code that uses the php-curl functions ...
0
votes
1answer
1k views

How to mention the prefix directory path in CURL command

I am new to Linux, i want to write the perl script to download the files from FTP sites but here i want to use curl command to download the files. which is working fine in wget command but not working ...
0
votes
2answers
1k views

Cannot curl a file host through apache2

I am trying to download a file using curl from a machine running apache2. My site (000-default) configuration looks like this: <VirtualHost *:80> DocumentRoot /home/user/files/ <...
0
votes
1answer
1k views

PHP curl showing wrong version

Hi I have been trying to get Curl with SSL support on CentOS 5.9 server . I have in the process updated php to 5.4.11 using the remi repo. The system is running plesk and when I do I look at phpinfo() ...
36
votes
7answers
94k views

How to update cURL CA bundle on RedHat?

I am running into issues where the CA bundle that has been bundled with my version of cURL is outdated. curl: (60) SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL ...
0
votes
0answers
191 views

tls 1.2 handshake timeout docker container

I'm working on a fresh ubuntu 18.04.01 in which I installed Docker version 18.09.1, build 4c52b90 by following the official install guide. I'm experiencing a weird issue regarding TLS 1.2 On the host ...
18
votes
8answers
33k views

How is it possible that I can do a host lookup but not a curl?

Has anyone ever seen this before? Note that this happens not only with google.com, but with every domain I try. It's a wireless connection (WEP), but I'm not sure how that would be relevant: $ curl ...
2
votes
1answer
3k views

Can't curl a linked container in Docker

I don't have a complex setup. 2 containers, one for my application and one for my API. CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS ...
1
vote
0answers
58 views

curl to https significantly slower than wget on centos7

Versions in question: Centos 7 Curl 7.63.0 (x86_64-redhat-linux-gnu) libcurl/7.63.0 NSS/3.36 zlib/1.2.7 libpsl/0.7.0 (+libicu/50.1.2) libssh2/1.8.0 nghttp2/1.31.1 I've got some strange behaviour ...
1
vote
1answer
4k views

Curl, lynx etc not accepting certificate locally but OK remotely

When I connect to my web server to view a site over HTTPS, I get the nice green EV thing in the address bar. When I use curl locally to connect, it complains about the certificate and dies. I'm aware ...
2
votes
1answer
9k views

curl gnutls_handshake failed: Error in the pull function

We run a curl command regularly, and suddenly last night it started giving us errors. The error is this: curl: (35) gnutls_handshake() failed: Error in the pull function. Our server is Ubuntu 16.04....
0
votes
2answers
106 views

File writing issue with mounted ftp drive with curlftpfs

I have mounted an ftp account to my linux folder using below command curlftpfs -o user=userid:password ip-address /home/temp -o kernel_cache,allow_other,direct_io,umask=0000,uid=1000,gid=1000 The ...
9
votes
1answer
4k views

What is the difference between installing libcurl4-gnutls-dev or libcurl4-nss-dev in ubuntu 11.10?

For a software that I am installing in an ubuntu server, it needs the curl deb packages. When I try to install libcurl4-dev it says that this is a virtual package and I need to install libcurl4-gnutls-...
0
votes
1answer
61 views

Intermittent http connection failure

We have two servers, ie host1.example.com host2.example.com One of these acts as the primary web server for our two main websites, example.com and example2.com. The other acts as a backup, which we ...
0
votes
1answer
23 views

Use Curl For Finding DataBase Errors?

I have a list of domains in a file say list.txt I've got a report that many of these domains showing "Database Connection Error" I want to know all domains that can't connect with db properly. I ...
19
votes
5answers
21k views

Does CURL cache requests?

This is a pretty long question, so bear with me. I wanted to stress my Akamai Server logged in from an AWS instance. So, I started running ab benchmark. However, they seemed ridiculously fast to ...
1
vote
0answers
53 views

Curl only uses specified OpenVPN interface if ran as root

I am using Ubuntu Server 18.04.1 LTS (Bionic Beaver). I run OpenVPN with redirect-gateway disabled because I don't want traffic to use it by default, only one specific application. This is the command ...