Questions tagged [curl]

cURL is an HTTP client library and command line tool.

646 questions
0
votes
1 answer

Can not compile php-curl ext with custom curl

I have libcurl installed here: /usr/local/curl-7.88.1/ I want to compile php-curl extension: # cd /usr/src/php-8.1.12/ext/curl/ # /usr/local/php81/bin/phpize Configuring for: PHP Api Version: 20210902 Zend Module Api No: 20210902 Zend…
Nick
  • 826
  • 2
  • 15
  • 42
0
votes
1 answer

Jira - REST API returns HTML on one VPS but JSON on another VPS

I am facing a very strange issue which I cannot solve. Basically, I have 2 VPS machines which I connect via RDP as they are both Windows Server machines. I have cURL on both of them. One is running Windows Server 2016 which we will call SERVER A.…
matead
  • 1
  • 3
0
votes
1 answer

OpenSSL Error: lib(128):capi_rsa_priv_enc:function not supported in client Auth

My scripts to sign file via API was working properly fine when my previous server setup was Ubuntu 20.04 and openssl version is 1.1.1b. But after upgrade, I am getting this issue. Client environment is same before and after the server…
0
votes
0 answers

cURL hangs unless using IPv6 with HTTPS

I need to make some cURL requests to a server that doesn't have an ipv6 address, but my machine only seems able to connect when 1) using https, and 2) using ipv6. Other requests hang indefinitely after DNS resolution, before any connection is…
eberts
  • 1
0
votes
0 answers

How to get actual latency when downloading with curl?

I have an http software that let people be logged and download data according to sent bytes. It's an infinite download until connection stopped. I want to know the time for each download. The connection is like that: Curl start login with…
Elikill58
  • 119
  • 4
0
votes
1 answer

Why does curl inside Docker to a subdomain in the same Host use private IP address?

Consider I have docker-subdomain.mydomain.com pointing to a website in a Docker container, and host-subdomain.mydomain.com pointing to a website in the Host itself. Both these websites are in the same Host and IP address. When the PHP code of the…
Nuno
  • 553
  • 2
  • 8
  • 26
0
votes
1 answer

Curl has incorrect DNS resolution in a dind context

I am running a docker:20.10.7-dind container. Into this one I am running a multi containers app. One container is a back container. Another one is a keycloak container. I connect on the back container and have : back$ cat /etc/resolv.conf nameserver…
ERO
  • 1
  • 1
0
votes
1 answer

troubleshooting dns resolution, packet dropping, and dig/nslookup

I've been trying to troubleshoot an issue where using a curl lookup command takes a long time (sometimes) and is quick some other time. TL;DR Question: how do i troubleshoot further. Connecting directly to an ip-address has no issues. I've tried two…
0
votes
0 answers

How do I get cURL (CLI) to close the connection made to a https server?

cURL doesn't seem to care about closing the connection to a server even when I include the "Connection: close" header? It respects the header for http, but not for https, seems like? curl -v -H "Connection: close" -o nul --http2…
LaRuim
  • 1
0
votes
0 answers

HTTP request fails with connection time out, but only from our server

My web application is running on a dedicated linux server located at a major hosting company. It needs to connect to an API provider, but libCurl always reports a connection timeout. I've boiled it down to the simplest test I can, which is to make…
0
votes
0 answers

cURL error 7: Failed to connect to localhost port 443: Connection refused

OS version: Ubuntu 20.04 x86_64 Plesk version: Plesk Obsidian 18.0.47.5 Hi, I am running XenForo Forum on my Plesk which running behind Cloudflare. I get following erro log, which is showing me that the curl connection to localhost on port 443 is…
Adem Aga
  • 1
  • 1
  • 1
0
votes
0 answers

How can I suppress . and .. when using curl against vsftpd?

When using curl to get a directory listing from a remote host running vsftpd, how can you suppress "." and ".." from being listed? Consider ... curl --insecure --user 'name:pass' sftp://host/some/path/ At a minimum, this will return . and .. - I…
LiamF
  • 101
  • 1
0
votes
0 answers

Curl command doesn't works without sudo

I am trying to make a curl request to https://www.google.com but gives this error SSL certificate problem: unable to get local issuer certificate the same command works with sudo ,how to solve this problem ,I can't have sudo access due to company…
0
votes
1 answer

Restrict IP addresses Google APIs and Accesing from GKE (Google Kubernetes Engine) Request Denied

I created API Keys to enable Geocoding API, Maps JavaScript API and Places API with Restrict IP with Cloud NAT IP. My API Keys access from Kubernetes on GCP (Google Kubernetes Engine/GKE), when im test curl get response request denied because…
0
votes
1 answer

How can I make my nginx web server reachable from outside its local network?

I am trying to reach a subdomain of my website from outside its local network. I can successfully ping it (ping my.subdomain.com): PING my.subdomain.com (ser.ver.ip.add) 56(84) bytes of data. 64 bytes from…
naraghi
  • 101
  • 1
  • 3