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.

0
votes
2answers
16 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 ...
0
votes
1answer
19 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 ...
0
votes
1answer
53 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 ...
-2
votes
0answers
9 views

cURL error 7 (Connection refused) from inside a container [duplicate]

I have a site built with Lando, which is built on Docker. From outside of my site's container I can cURL my site: curl http://bar.lndo.site:8000 # returns the markup of the site's homepage If I try ...
1
vote
0answers
15 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 ...
0
votes
1answer
42 views

File .pem Permission denied

I have received from my partner a pfx file that I converted to pem for API The idea is that I do not know where to put the ubuntu server and how to access the plug-in on the woocomerce my log it's ...
0
votes
0answers
30 views

Curl --negotiate: Force Kerberos?

We're in the process of testing out SPNEGO support for an Apigee API proxy. I'm using the API sample found here as the basis for my proxy. Everything is configured, and now it's time to test. I'm ...
1
vote
1answer
76 views

cURL and Azure BLOB with SAS - HTTP header that's mandatory for this request is not specified

I've reviewed the information at: https://docs.microsoft.com/en-us/rest/api/storageservices/put-blob https://docs.microsoft.com/en-us/rest/api/storageservices/service-sas-examples As far as I can ...
0
votes
0answers
54 views

nginx and mTLS and curl, oh my

I am trying to configure client certificate verification (mTLS) in nginx and test it with curl. Important part of my nginx config: server { listen 443 ssl default_server; listen ...
0
votes
0answers
14 views

Perform website login using curl command. Help understand google analytics cookie

I want to script the login on a website using the curl command. In Safari on macOS I have enabled the developer mode and logged the network activity in the WebInspector. The first activity is a https ...
1
vote
1answer
114 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
69 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
58 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
62 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
309 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
92 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
33 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
65 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
40 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
84 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
61 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
114 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
461 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
252 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
26 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
106 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
322 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
1k 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
2k 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
883 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
49 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
54 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
2k 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
48 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
775 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
300 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
2k 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
71 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
365 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
334 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
2k 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
27 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
160 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
10k 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 ...