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

-1
votes
0answers
17 views

How to solve the error “could not load PEM client certificate, OpenSSL error:02001003:system library:fopen:No such process”? [on hold]

Excuse me if the question is silly, but I'm a novice in this area. I need to connect to a service via SSL from a Drupal 7 site. I have a file with a ".p12" extension and a password for it. Also, I use ...
1
vote
1answer
49 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 ...
0
votes
1answer
35 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
0answers
7 views

Windows: curl: (7) Failed to connect to localhost port 5984: Connection refused [duplicate]

I installed curl for Windows from here: https://curl.haxx.se/windows/. However, the connection is refused when I try to connect: $ curl -v http://localhost:5984/ * Trying 127.0.0.1... * ...
0
votes
0answers
29 views

Curl cronjob for a file does not run

I have a dedicated server (SSH access) and one of my clients says that it's been a couple of days that one of his cronjobs do not work. This is the command he's using: * * * * * /usr/bin/...
0
votes
2answers
20 views

How to connect from curl (git-ftp) and FileZilla to vsftpd?

Following this tutorial I managed to add FTPS connectivity to the server. Following step 6 in the tutorial: 6.1 generate certificate $ sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -...
-2
votes
1answer
70 views

Centos 7 curl HTTPS error (1)

I start listing my specs: CentOS Linux release 7.5.1804 (Core) # curl -V curl 7.61.1 (x86_64-pc-linux-gnu) libcurl/7.61.1 Release-Date: 2018-09-05 Protocols: dict file ftp gopher http imap pop3 rtsp ...
0
votes
1answer
46 views

How to solve this generic intermittent SSL error?

I'm getting a cURL error when my website attempts to retrieve data from the CRM. PHP Fatal error: Uncaught exception 'Exception' with message 'cURL Error: Unknown SSL protocol error in connection to ...
1
vote
0answers
28 views

Why same request has different response times?

I have an API (built with nodejs) and deployed on a kubernetes cluster using a docker image. For default route I simply return a Hello World QA! message. I am testing response times of this GET ...
0
votes
0answers
37 views

squid proxy dont load only one site , dont SSL VERIFY HOST

squid proxy don't load only one site, don't have a problem with other websites I think this problem from SSL VERIFY HOST on squid. I use this code on squid config but don't fix my problem: Source: ...
0
votes
1answer
26 views

Curl fetch only headers without head

On our company servers due to security purposes our main SysAdmin only allows a few HTTP methods to pass through like (GET, POST, OPTIONS, PUT, etc.) and HEAD is not one of them. I implemented Zabbix ...
0
votes
0answers
38 views

Django (uwsgi) + nginx hangs on curl requests

I am trying to debug a problem where a request done with curl hangs. The website renders fine if I open it through any web browser. I can't find anything suspicious into the log files as well. I've ...
0
votes
2answers
57 views

How to start a blocking process (server) and then curl it from the same script?

I am trying to operate DeepDetect (a machine learning server) in Docker [note this is not a DeepDetect question - it is simply a Bash question]. However, I am running into a more general Linux/bash ...
0
votes
1answer
49 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
165 views

SSL “unable to get local issuer certificate” : “full chain” vs “root”?

Summary In summary I have some certificate related files and some certificate related instructions but I'm not sure which files are which ! Background I've just installed a certificate from Lets ...
0
votes
0answers
125 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
17 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
71 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
165 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
896 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
1k 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
435 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
54 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
38 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
20 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
28 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
43 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
39 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
53 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
1k 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
37 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
259 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
170 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
1k 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
57 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
245 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
209 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
1k 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
25 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
132 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://...
2
votes
2answers
7k 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
213 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
269 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
15 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
285 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
920 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
20 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
32 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: ...
0
votes
1answer
237 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
18 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-...