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.

-4
votes
2answers
4k 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
103 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
483 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
499 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
35 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
233 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
16k 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
393 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
429 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
2answers
2k 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
1answer
38 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
317 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
30 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
3k 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....
1
vote
1answer
8k 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
82 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
15k 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
1k 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 ...
6
votes
2answers
14k 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
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
1answer
641 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....
1
vote
1answer
720 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
174 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
3k 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, "...
0
votes
0answers
784 views

EC2 instance curl error

I have two ec2 instances namely e1 and e2. public IP of a project inside e1 is http://xx.xx.xxx.xx:3005. I have logged into my first instance e1 and from the root, I tried to execute the curl request ...
0
votes
2answers
1k views

How to add single quote inside of a bash variable?

I'm trying to make a call to an API and want to set some curl defaults into a single variable so when I make multiple calls, it uses the same set of 'defaults'. For some reason, curl is not ...
0
votes
1answer
345 views

TCP source port incremented by 2, always even for curl / wget

When using curl and wget, when source port is not set manually (like with --local-port in curl), the source TCP port is always even, and will increment by 2, instead of 1. EG: in tcpdump when I make ...
0
votes
1answer
306 views

Is there a Powershell equivalent to nscurl ats-diagnostics?

I know that nscurl is coming on MacOS since El Captain, but I am wondering if there is a way to get similar results using PowerShell. This answer shows how to get the certificate, but it isn't ...
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:...
2
votes
0answers
203 views

Curl not closed when 204 No-Content and Transfer-Encoding: chunked through haproxy

Haproxy is terminating https connections and forwards requests to backend. When resource returns 204 No-Content and Transfer-Encoding: chunked the curl connection is not closed. When I call resource ...
-2
votes
1answer
294 views

How I can change XML files are handled by Nginx (Debian)

On my server, XML files are handled by Nginx. They should be handled by Apache so that .htaccess file is working I have checked the cURL not working properly When I run the command curl -I https://...
7
votes
1answer
663 views

Understanding the Difference Between DNS Resolvers

Intro In the attempt to debug a networking issue local to our intranet, it became apparent that curl host nslookup and dig behave differently. Where dig and host returns the IP address of the URL in ...
1
vote
1answer
661 views

DNS errors in libcurl/c-ares, but not in command-line curl

Problem description I have an executable which repeatedly posts data to an HTTPS endpoint, using libcurl with libcares. This is getting occasional DNS resolution timeouts on some clients (not all). ...
2
votes
0answers
2k views

how to do an HTTPS request to an specific server?

I want to health check specific servers before adding them to a load balancer. The load balancer is just forwarding at the TCP level to the instances, the instances are handling the SSL handshake. The ...
0
votes
1answer
604 views

Looking for a web API which can test if a port is open [closed]

There are of course many ways to check if a port is open on a server (nmap, netcat, yougetsignal.com), however, I am curious if anyone knows of a website that has an API that would be callable from a ...
0
votes
1answer
481 views

Get current status from httptest (Zabbix)

I'm trying to use PHP/CURL to query Zabbix and find whether a service is available or not. From Zabbix Web interface, I get this screen, which shows the test and its status. Zabbix Web Interface I'...
2
votes
1answer
3k views

Slow Responses with curl and wget on CentOS 7

My problem is that I cannot figure out why I'm getting such slow response times using curl and wget. When I say slow, I mean a minimum of five or six seconds for a page which should take only a second ...
2
votes
1answer
880 views

Can't install WWW:Curl on new Ubuntu 16.04 server

I'm trying to work out why I can't install WWW::Curl on my new server. I've done: apt-get install libcurl4-openssl-dev ...and then: cpanm WWW::Curl I then get an error after a while. The log looks ...
0
votes
0answers
663 views

Ubuntu connect to IP:PORT not working

From past 2 days, I'm struggling with a weird issue, found no answers related to my problem, earlier everything was working fine, but suddenly it stopped. Issue exists only on my client system, from ...
4
votes
3answers
2k views

nginx block curl and wget

I have nginx webserver. I have a rich content site and i found that some malicious bots are trying to crawl my content. I blocked any curl or wget coming to my site like this if ($http_user_agent ~* ...
2
votes
1answer
2k views

PHP CURL not sending/receiving any data - undefined symbol: PR_GetEnvSecure

Curl has stopped working for me. I ran some updates on my AWS EC2 server yesterday so I have a feeling that is the cause but I can't figure it out. I am mainly using Curl to add people to various ...
0
votes
1answer
794 views

Curl can´t connect to implicit FTP over TLS on CentOS 7

I am trying to connect to an implicit FTP over TLS however it terminates with NSS error -5938 (PR_END_OF_FILE_ERROR). I am running latest Centos 7. I am able to connect with default curl in ubuntu ...
3
votes
1answer
16k views

cURL error 60: Peer’s Certificate issuer is not recognized

I have a store build in wordpres which offers wordpress templates and it has an updater system. My server is centos 6.9 and Im using virtualmin. Comodo SSL and php7 but the people when try to update ...
2
votes
2answers
5k views

Centos 5.11 OpenSSL TLS 1.2 for Paypal

I run a website on a server running Centos 5.11 - EOL now I know but an upgrade is not possible for a while. The website runs the Sellerdeck software which integrates with Paypal for payments. In ...
0
votes
1answer
385 views

Openstack - Run a script after creating/deleting a VM

Is there a way to get Openstack to run a script right after it creates or deletes a VM(both Windows and Linux)? This script has to be run on the host itself, not on the VM or guest it just created. ...
6
votes
1answer
2k views

SSL certificate working in chrome but not openssl s_client or curl

Google chromes update to version 58 started invalidating my self signed certificates a few days ago. It was complaining about missing subjectAltNames. I did some research and tried a couple of ...
-1
votes
1answer
1k views

Apache Httpd PHP 7 Curl Setup

I have been trying to enable curl on PHP 7.1.4 which is running off of Apache HTTPD 2.4. The steps I have taken so far are: Uncomment extension=php_curl.dll Ensure that the ext path is set correctly (...
3
votes
1answer
4k views

Cannot get cURL or wget to validate some SSL certificates

I've noticed that our link checker, which uses cURL, fails more and more often to validate SSL certificates. I'm trying to get to the bottom of this. https://www.bgetem.de/, for instance, opens just ...
2
votes
1answer
2k views

curl is unable to get local issuer certificate

I'm using Let's Encrypt certificate and even though when I'm accessing server with a browser, browser reports page is being "secure", however I'm getting following when I use curl instead. # curl ...