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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Questions tagged [curl]

cURL is an HTTP client library and command line tool.

0
votes
0answers
26 views

what does curl stuck at “Trying <ip address>” indicate?

We have a fleet of beaglebone boards running Debian 7.9 that communicate with our server (an Azure App Service) over https. From at least one of these boards, most requests to the server timeout. When ...
0
votes
1answer
14 views

OpenNebula: instantiate a service template with Curl providing a service name

In OpenNebula 5.4, I am able to instantiate a Service from a Service Template using Curl, but I don't know how to provide a service name. The website example works as expected: curl http://127.0.0.1:...
0
votes
0answers
7 views

POST JSON using CURL on Mac without bash errors [migrated]

I am trying to post a JSON using curl on a mac. curl --request POST \ --url 'https://sample.com/form'\ --header 'Content-Type: application/json'\ --header 'x-token: 123456789'\ --data '{ -- json ...
0
votes
0answers
42 views

CURL over VPN to make API request

I'm trying to use CURL over a VPN rather than the public internet. To do this I am using this setting in the CURL request: curl_setopt($ch, CURLOPT_INTERFACE, "eth0:01"); The value eth0:01 comes ...
0
votes
1answer
57 views

curl - SSL peer does not support certificates of the type it received

Trying to send a request with a client certificate to an Apache server, I have the following request and error: $ curl -X POST https://my-server.com/dummy/user -H 'Cache-Control: no-cache' -H '...
3
votes
2answers
728 views

Why does curl work with a specific https site, but wget has problems with certificates?

Centos 6. After updating recently ca-certificates I run into some troubles. I have the most recent versions of curl for centos 6: -bash-4.1$ curl -V -v curl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7....
2
votes
1answer
155 views

“server certificate verification OK” but “ALPN, server did not agree to a protocol”

I am making a curl call curl -v ... https://... and the verbose output contains .... * ALPN, offering http/1.1 * SSL connection using TLS1.2 / ECDHE_RSA_AES_128_GCM_SHA256 * server certificate ...
2
votes
1answer
116 views

Return only a HTTP status code from curl command

I want to just get a statusCode from CURL command response. When I use this command: curl -I http://uploadserver.ln/1.mp4 I want to just get 200 rather than this long result: HTTP/1.1 200 OK ...
0
votes
1answer
53 views

Servers can't find each other

I had originally posted this on Superuser, but for some reason it got marked off-topic, so this seems like the only reasonable place left to post this. I have a web server, which hosts my website (...
1
vote
1answer
36 views

Determining if an SSL cert is from cloudflare

I have got a lot of domains. I use basic monitoring script, which checks expiration date of ssl certificate. But a few of my domains use default cloudflare cert. How to determine and reject domains ...
1
vote
0answers
16 views

Getting different local-port value in tcpdump when using --local-port option in curl

I'm using curl command to send the traffic to the Server. In curl command, I'm using --local-port option. Below is the command: curl -v --interface 10.1.1.3 -b --local-port 10000 http://30.1.1.101/...
0
votes
0answers
26 views

Nginx SSL request process

I have a Nginx 1.10 with this 2 sites: site A: server { listen 443 ssl http2; listen [::]:443 ssl http2; ssl_certificate /etc/ssl/example.com/fullchain.pem; ...
0
votes
1answer
35 views

Apache closes connection too early

I am trying to debug an issue we are having with some embedded devices when they are downloading Firmware over-the-air and closing connections too early, failing to get all data. I tried downloading ...
-3
votes
1answer
37 views

reading Linux /proc directory with curl

I have a server with trasversal directory allowed where I'm able to use curl to read system operating files. I'd like to read the /proc directory as well but for some reason, I receive this: curl -v ...
0
votes
1answer
51 views

Switch between using / not using CDN

Previously, I have used CloudFlare, where we can switch quickly between "active mode" and "development mode". In "development mode", static files are loaded directly from the origin server rather than ...
1
vote
1answer
458 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 ...
0
votes
0answers
27 views

Add an IPv6 subnet to Ubuntu server

I'm trying to add an entire /64 ISP-provided IPv6 subnet to an Ubuntu server machine. I'd like to be able to use any IP I want with curl (perhaps using --interface <ip>) after the IPs are ...
0
votes
1answer
26 views

How to use rootcert.pem certificate with curl?

I have a file/certificate in next format rootcert.pem. How to use this certificate with curl ?
0
votes
1answer
94 views

How to move/migrate indices from self hosted Elasticsearch to AWS Elasticsearch service (cloud)

I have a self hosted Elasticsearch 6.2 cluster (2 master nodes, ~200Gb data each). I plan to move to AWS Elasticsearch service & it's not possible to ssh into it. What's the fastest way to move ...
-4
votes
2answers
572 views

Docker container port 80 - “Connection refused”

Docker file content - [root@ansiblecontrolnode dockerbuild]# cat Dockerfile FROM centos:latest MAINTAINER dhirendra120285.rai@gmail.com RUN yum update -y && yum install httpd net-tools -y ...
0
votes
0answers
37 views

nscurl giving tls errors

I am trying to figure out a ssl error that happens when sending a request to the server. FYI, this error happens inconsistently. NSURLSession/NSURLConnection HTTP load failed (...
0
votes
1answer
113 views

problems mounting curlftpfs

I am attempting to mount an FTPS connection but am not having much success in getting it to automatically mount. I am using AWS Linux. I can get it working from the command line with: curlftpfs <...
1
vote
1answer
100 views

Is it possible to normalize “double-dots” URL using nginx?

According to RFC3986 URL like this http://example.com/catalog/category/goods/../brand/product.html converted by some UserAgent (curl would be nice example) to http://example.com/catalog/category/...
-1
votes
1answer
710 views

php post request curl HTTP ERROR 500 [duplicate]

here is my configuration : Apache2 working with php7.1. I have an example PHP code for sending a sms message specific to JasminSMS : <?php // Sending simple message using PHP // http://jasminsms....
0
votes
0answers
22 views

Inconsistent curl starttransfer performance in Debian GNU/Linux 7.11 (wheezy)

I have created an API and hosted in windows IIS server. I checked the performance of the API on browser and its consistent ~200 ms. But when I try to access the API with curl on debian, it slows down ...
0
votes
0answers
67 views

Port is open and listening but is denying connections

Port is open and listening but is denying connections. When trying to CURL in terminal curl --data-binary '{"id":"curltext","method":"addrequest","params":{"amount":"3.14","memo":"test"}}' http://...
1
vote
1answer
4k views

Failed to connect to localhost port 5000: Connection refused with Docker

I have build my small Python(flask ) app.Container is here docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS ...
-2
votes
1answer
158 views

Hide running service such as Nginx from a port scan

When I run a Port Scan to my server through NMap (like this)... $ nmap -A -p443 example.com ...then I get an output like... Starting Nmap 7.70 ( https://nmap.org ) at 2018-03-29 00:14 BST Nmap scan ...
0
votes
1answer
198 views

Debian version change affecting scripts using curl and HTTPS

Recently I started to use Debian 9 (9.4, from Debian 8.x) and a script involving curl stopped working. I connect to internet through a squid proxy on localhost connected to a parent proxy. My ...
0
votes
0answers
14 views

How to copy /dfs/nn from another node, without ssh access to the namenode

Is there any way to copy /dfs/nn directory on the namenode in HDFS to localsystem without accessing the namenode ? Can we do curl ?
0
votes
0answers
246 views

fstab+curlftpfs entry to mount partition FTP remote

I'm trying to mount an ftp directory on my VPS server with Ubuntu. I followed this guide I have configured /root/.netrc machine ftp.mydomain.co login replicador@mydomain.co password ...
0
votes
2answers
671 views

Curl SSL verification issue on CentOS 5.7 (bypassing doesn't work)

I'm on a CentOS 5.7 server trying to install ssl cert through GitHub script. First when I execute, I get curl error 60 and if I set insecure in ~/.curlrc then I still get curl error 35. I also tried ...
0
votes
0answers
19 views

Install .exe in windows

I want to automate manual process via teamcity. I have a .exe file which I want to install from command line build runner using teamcity(windows server). Used below command but now how can I handle "...
0
votes
1answer
29 views

Unusure how to use curl to GET using parameters in header

Following this example. When I send a command to the website as thus, it works and returns a token: [idf@xxxx ~]$ curl -d "name=Ivan&email=idf@xxxcom&password=secret" -H "Content-Type: ...
1
vote
3answers
750 views

curl: (60) Peer certificate cannot be authenticated with known CA certificates [closed]

My environment: # cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.4 (Maipo) # uname -a Linux X.X.X 3.10.0-693.11.6.el7.x86_64 #1 SMP Thu Dec 28 14:23:39 EST 2017 x86_64 x86_64 ...
0
votes
1answer
193 views

cURL error 60 only on certain domains

I have several subdomains (virtual hosts) with Laravel (php framework). All of the projects have the same setup for sending mails via Mailgun. (Mailgun is a web service to which you send http requests ...
1
vote
1answer
15 views

How to embed an @ parameter in curl

What is the correct way to embed an email string in a curl POST command? Doesn't the @ get confused? curl -d "name=Ivan&email=idf@xxx.com&password=secret" -H "Content-Type: application/x-www-...
0
votes
0answers
2k views

curl.error: (35, 'error reading X.509 key or certificate file')

I created a certificate using this: openssl req -x509 -nodes -newkey rsa:4096 -keyout server.key -out server.crt -days 365 Then I run: curl -l --tlsv1.2 -E server.crt -v https://test-as.sgx....
0
votes
1answer
5k 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
1answer
63 views

Checking JBOSS version from a webapp URL

I have a web application URL and I am interested to know which JBOSS version it is running behind. How can I check that? Is it possible to check with curl?
1
vote
2answers
5k views

curl fails to retrieve HTTPS content: error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure

I'm trying to access the website https://www.lawsociety.com.au with curl on Windows 10 and Ubuntu 16.04. It works on Ubuntu, but fails on Windows with the message error:14094410:SSL routines:...
3
votes
1answer
548 views

How to check haproxy sni-based rule with curl?

I made simple HaProxy configuration to pass thorough traffic based on SNI field. Here is my haproxy.cfg defaults log global timeout client 50s timeout client-fin 50s timeout connect ...
1
vote
1answer
5k views

how to trigger jenkins job via curl command remotely

I have tried to execute(trigger) jenkins job (not a parameterized job) via curl command by using below methods but it showing these results. my jenkins version is Jenkins 2.73.3 curl -X POST -u ...
0
votes
0answers
68 views

Nginx - deny certain value in Curl “--data”?

I'm trying to block certain attack on WordPress like http://two.com/wp-admin/admin-ajax.php?action=blabla. Below is what I'm using in Nginx: if ($query_string ~ "action=*") { return 403; } It do ...
0
votes
0answers
240 views

cURL error 28: Connection timed out after 5001 milliseconds

I have wordpress 4.9 on a digitalocean droplet - and some of the plugins are trying to reach https://my_domain_name.com/wp-cron.php. The problem is it's getting the cURL error. cURL is working for ...
0
votes
2answers
538 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
1answer
451 views

Cannot cURL to NodeJS, but can access it from browser

I can access my test Node site (http://18.220.168.1:8888) from a browser just fine. However, when I attempt to cURL using PHP's cURL, I get: Array ( [curl_error] => Failed to connect to 18....
0
votes
1answer
365 views

Can't access with public IP, but with localhost

I'm running InluxDB on my server in docker container. this command is ok, when executed from the same server: curl -G http://localhost:8086/query -u my_user --data-urlencode "q=SHOW DATABASES" ...
5
votes
3answers
145 views

Can I validate a large file download piecemeal over http

I'm downloading a large file over http via wget, 1.2TB. The download takes about a week and has contained corruptions twice now (failed md5 check, which takes days to run by itself). Is there a good ...
0
votes
1answer
1k views

jq Cannot index errors

I am trying to use jq to get certain information from this endpoint curl -s https://bittrex.com/api/v1.1/public/getmarketsummaries/ | jq '[.]' and the output below [ { "success": true, "...