Questions tagged [curl]

cURL is an HTTP client library and command line tool.

Filter by
Sorted by
Tagged with
0 votes
0 answers
784 views

Remote host closed connection during handshake - Certificate issue or connectivity?

I am getting SSL Handshake Exception when trying to communicate with a server. I tried doing a curl to the server to figure out if there is connectivity but got the below error. NSS error -5938 (...
vivek verma's user avatar
1 vote
1 answer
1k views

IP incorrect when making curl request from the same server

I have a user A with IP AAA.AAA.AAA.AAA, this user needs to access a directory of an other user B (with IP BBB.BBB.BBB.BBB) with CURL on the same server (Directadmin/CentOS/IP CCC). This directory of ...
Oht's user avatar
  • 113
2 votes
1 answer
2k views

How to properly generate self signed certificates for use in Nginx

I used openssl to generate the following certificates: openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout server.key -out server.crt -subj "/C=IT/ST=Mi/L=Milan/O=MyOrg/OU=RnD/CN=localhost/...
pistacchio's user avatar
0 votes
1 answer
3k views

How to open google.com using curl with Host header (certificate does not match) [closed]

Since Google is using HTTPS/SSL I am unable to access it using the IP of Google.com and passing the Host header. I don't understand why this is not working. Here is what I have tried so far. I got ...
Liga's user avatar
  • 135
0 votes
1 answer
2k views

Error uploading zip with curl on Catalina OSX 10.15.1

Using curl command tool pre-installled in OSx. Command like: curl -v -H 'Authorization:Bearer xxx' -H 'Accept:application/json' -F 'funzione=uploadPacket' -F 'folder_id=159' -F 'userfile=@//Users/...
user2082733's user avatar
1 vote
0 answers
526 views

CURL Cannot Resolve Host running on MAMP

I have a MAMP PRO set up with local SSL certificates for a url named qph-plugin.local which is running a wordpress site. When I view the site in the browser on my machine it all works as expected. ...
Paul's user avatar
  • 131
-1 votes
1 answer
653 views

I can see HTTP/2 headers with curl. But, if this protocol works with frames and binary numbers: shouldn't these headers be "invisible"?

HTTP/2 has several differences with respect to HTTP/1.1. One of them is the use of frames, binary numbers and compression to optimize the headers. However, when I use "curl -v --http2" against a ...
john smith's user avatar
0 votes
3 answers
2k views

Blocked from accessing website with EC2 Instance

When I run this command on my Ubuntu 16.04 EC2 Instance: curl -vvv https://www.oddsportal.com/site-map-active/ it returns * connect to 188.92.41.44 port 443 failed: Connection timed out * Failed ...
frantic oreo's user avatar
3 votes
1 answer
5k views

cURL specify outbound IP - Windows

I have configured my Windows AWS instance to use two IP addresses and would like to be able to choose which of these two IPs are used for a HTTP GET request using curl (pycurl). I want it to appear ...
Huw Thomas's user avatar
1 vote
1 answer
6k views

how use weak client certificate with curl/openssl

I'm trying to use a PCKS12 client certificate with curl 7.58.0 and OpenSSL 1.1.1 on Ubuntu 18.04 server. My certificate info is: ~# openssl pkcs12 -info -in cert.p12 -noout -nomacver Enter Import ...
Ariyan's user avatar
  • 147
0 votes
2 answers
218 views

HTTP Protocol: TLS/Requests/Responses classification after invoking the GET request method in curl

First of all, sorry for the inconvenience. I don't know if this is the right forum, but I've read several threads and there are some very expert people on this subject, so maybe one of them can help ...
NewUser's user avatar
1 vote
0 answers
704 views

TLS handshake fails when traffic goes through OpenVPN tunnel [duplicate]

I have an OpenVPN server in US and a client in Europe. When connected all traffic is routed through VPN tunnel. A problem has been detected - for some HTTPS websites connection fails. I will present 3 ...
Alex Fliker's user avatar
0 votes
0 answers
522 views

Server intermittently dropping http requests in 0s when network traffic high

We have a web server that makes a number of http (actually https) requests to itself using curl. (This is because we have multiple websites running on the same server, and they use each other's APIs.) ...
Nathan Stretch's user avatar
0 votes
1 answer
258 views

When using the curl -v -i command in the Ubuntu Terminal the server responses are duplicated. why?

I'm doing university work on the HTTP protocol and I want to explain "visually" how an HTTP connection occurs between a client and a server. To do this, I use in the Ubuntu terminal (which I have ...
john smith's user avatar
1 vote
1 answer
2k views

PASV FTP fails for wget/ftp but works for curl/lftp

I have a server running Centos 7 and vsftpd-3.0.3 (installed from source to get the latest version, though everything I describe was also applicable to the vsftpd-3.0.2 version that was previously ...
dan's user avatar
  • 333
0 votes
0 answers
982 views

Debian 10 with PHP 7.3.4-2 - Call to undefined function curl_init()

I am running a VPS with Debian 10, Apache 2.4.38, PHP 7.3.4-2, MariaDB 10.3.15 and curl 7.64.0. On one of the hosted, older websites I am running a script that uses curl_init(); which fails with the ...
user avatar
0 votes
0 answers
19 views

Failed to make https request with self signed certificate authentication [duplicate]

In order to make clients authentication with a self signed certificate, I went through the following steps: openssl genrsa -out ca.key 4096 openssl req -new -x509 -days 3650 -nodes -key ca.key -out ...
Super Hornet's user avatar
1 vote
2 answers
506 views

Cannot Use CURL on /etc/pam.d/sshd

I am creating a script that doing cURL everytime SSH login happens. I inserted a new line in /etc/pam.d/sshd like this: auth required pam_exec.so /bin/curl.sh and my curl script is like ...
Williams Perdana's user avatar
-1 votes
1 answer
1k views

"curl: command not found" on Debian 10 with PHP 7.3 installed successfully?

I have a Debian 10 VPS where I'm configuring for use for an internal app. At the moment I'm installing a monitoring package for the server which requires me to use curl. Running the command returns ...
mickburkejnr's user avatar
0 votes
1 answer
3k views

curl ip address of load balancer

I have an application running on a VM, that sits behind an internal load balancer in Azure. I can reach it locally on /api without any problem. I have configured the rules for the load balancer to ...
RM29's user avatar
  • 1
1 vote
0 answers
256 views

PHP cURL on AWS starts returning error 0 after long uptime

We're using Ubuntu 16.04 on AWS (4.4.0-1066-aws x86_64) to send pushes to Android and iOS clients from PHP application using curl. This is the bit of code used to send a push to Firebase: $ch[$i] = ...
roundowl's user avatar
0 votes
0 answers
52 views

Getting no response when using POST method (URGENT)

I have 3 servers svrA, svrB, and svrC. svrA and svrB need to call a web service (http://example.com/api/consoleServices) hosted in svrC. Now the issue is sometimes I am able to get the response from ...
user avatar
0 votes
1 answer
2k views

Sporadic mod_jk Client Errors when uploading large files

Note: There is a TL;DR at the end of this question. I have a nightly backup script that has been working reliably for 6 years, and two months ago, it began to fail to upload to my archive server (...
Parker's user avatar
  • 783
0 votes
1 answer
3k views

PHP curl_exec failing with HTTPS

I have a wordpress site that its failing. I tracked the issue and I found that is due to curl_exec() failing with HTTPS sites. I'm running php 5.6 in a Alpine Linux v3.8 container with lighttpd. The ...
lepe's user avatar
  • 469
2 votes
0 answers
5k views

SSL_ERROR_SYSCALL in docker container when using openconnect vpn

I'm developing a telegram bot, but the API is banned here (Iran) so i have to use VPN or cant make a single call to the BOT API. for development i'm using docker,docker-compose in Ubuntu-18 and my VPN ...
Arash's user avatar
  • 121
0 votes
1 answer
1k views

Add calendar event to Nextcloud using curl

I am unsuccessfully trying to add an event to Nextcloud agenda (Nextcloud version 16), using cURL : curl --user 'user:pass' -X PUT \ https://myNCserver/remote.php/dav/calendars/user/myCalendar /...
M-Jack's user avatar
  • 1,376
9 votes
4 answers
21k views

How to disable keepalive in curl

I'm trying to figure out how to consistently turn off keepalive across various client machines which are issuing HTTP requests via curl. This is my target server: - Ubuntu 18.04.2 LTS - 4.15.0-47-...
cherouvim's user avatar
  • 824
-2 votes
1 answer
10k views

Centos 7 CURL issuer certificate invalid

Using this CURL syntax bellow curl --header "Content-type: application/json" --request POST --data '{ "userID" : "***", "securityCode":"***", "token":"***" }' https://12.12.12.12:1234/hhh/AAA/bbb ...
Yohanes AI's user avatar
0 votes
1 answer
398 views

Automated speed tests with a curl command

I'm having some hard time finding examples of something relatively simple: At my job, I need to come up with a script to test various servers with curl and then get the outputs in a file. The command ...
Notauser's user avatar
  • 295
0 votes
1 answer
5k views

Getting error error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure on jmeter

I have an issue with Jmeter Curl. I have a .sh file which contains curl command, and that sh file calling using OS Process Sampler .sh command contains curl -kvH "Accept: application/json" ...
Sourabh Nigam's user avatar
1 vote
2 answers
4k views

Curl + Socks5 - escape authentification data

I'm trying to use Curl with Socks5 proxy which needs authentication: curl -v -x socks5://user:password@PROXY_SERVER_IP:PROXY_PORT http://checkip.amazonaws.com However, my login is email address and ...
skall's user avatar
  • 31
0 votes
3 answers
4k views

curl bash script works fine in shell but not work in cronjob

I have a script using curl to do the job and set into crontabs. Things were fine on redhat 7.5+ or CentOS 7. But in redhat 7.2, the script turned into a junk and never output a thing from the curl ...
Yeats Raw's user avatar
2 votes
1 answer
270 views

Is it possible to extract a signed message from an SSL request?

Given any HTTPS server, say google.com, can we extract the payload/response and the signature for that data? The purpose would be to make a request, and obtain a data file and a signature that could ...
Alexandre Gomes's user avatar
0 votes
1 answer
3k views

curl "No route to host" or "Connection timed out" but python httplib works

I have qemu guest instance which has an interface with 192.168.0.4 static ip address. Also there is virtual interface tap0 without ip address and br0 which has 192.168.0.3 ip address on the host. ...
rinatdobr's user avatar
  • 103
1 vote
1 answer
3k views

413 error in apache even though my POST is much smaller than the max limit

I have asked this question on stack overflow as well. I have an apache server and a fastcgi script. When I try to send POST request to my script, it fails giving me the 413 error. If I send in no ...
Hemil's user avatar
  • 63
0 votes
0 answers
6k views

CentOS 7: curl and wget not working

My problem is that curl and wget usually fail to retrieve more than just the first part of any given file, and often nothing at all. Both have worked previously on the same server, and nothing else on ...
SuperDog's user avatar
6 votes
2 answers
15k views

Https connection, TLS hangs and eventually fails SSL_ERROR_SYSCALL

I'm trying to correctly diagnose an issue where the server i have access to doesn't seem to be able to contact another server on the internet over port 443: ~$ curl https://mydomain.co.uk -vvv * ...
Ankur22's user avatar
  • 111
0 votes
1 answer
94 views

automatically detect an apache server running on a specific vm and zone in Google Cloud Platform

Note: This is a self-answered question, which is allowed here. If you have better solutions go ahead and post them. Hypothetical automation for a web-based cloud school needs to test if students ...
Paul's user avatar
  • 1,644
1 vote
1 answer
919 views

curl resolving invalid hostnames to own IP

When I curl an invalid domain, I get a response from my own webserver. Ubuntu 16.04.5, curl 7.47.0 For example: root@l ~ # curl -v foobar.x * Rebuilt URL to: foobar.x/ * Trying 148.X.X.X... * ...
sui's user avatar
  • 111
2 votes
1 answer
8k views

Converting curl request to powershell using invoke-webrequest

I'm struggling to try and convert the following curl request into powershell using invoke-webrequest: curl -X PATCH "http://172.28.36.62:8080/api/3/http/upstreams/my-api/servers/5" -H "accept: ...
John Fox's user avatar
  • 320
1 vote
1 answer
4k views

curl resolves all non-SSL URLs to 127.0.0.1 and port 8080

I'm executing curl and no matter what URL I point it to, it always tries to connect to 127.0.0.1 and port 8080: $ curl -v http://asdfsafzsdfsdf/ * Trying 127.0.0.1... * connect to 127.0.0.1 port ...
jotadepicas's user avatar
0 votes
0 answers
702 views

How Does curl over HTTP Know Where to Respond

This might sound like a silly question that is probably just part of the HTTP protocol, but might be important to debugging an issue I'm having. We have some PHP code that uses the php-curl functions ...
Aaron Chamberlain's user avatar
2 votes
1 answer
4k views

Curl verify certificate improperly

I used curl to launch a https request to download the file. I used below command: curl -v -o Output.pdf https://otherdomain.com/upload/manual-8mm-f35-csii-vdslr-5.pdf The result I get is: ...
Jitesh T's user avatar
1 vote
0 answers
5k views

tls 1.2 handshake timeout docker container

I'm working on a fresh ubuntu 18.04.01 in which I installed Docker version 18.09.1, build 4c52b90 by following the official install guide. I'm experiencing a weird issue regarding TLS 1.2 On the host ...
Alberto Sabaini's user avatar
1 vote
0 answers
779 views

curl to https significantly slower than wget on centos7

Versions in question: Centos 7 Curl 7.63.0 (x86_64-redhat-linux-gnu) libcurl/7.63.0 NSS/3.36 zlib/1.2.7 libpsl/0.7.0 (+libicu/50.1.2) libssh2/1.8.0 nghttp2/1.31.1 I've got some strange behaviour ...
Stono's user avatar
  • 131
1 vote
2 answers
4k 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 ...
ProgNi's user avatar
  • 21
0 votes
1 answer
135 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 ...
Sollosa's user avatar
  • 137
0 votes
1 answer
1k 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 ...
Nathan Stretch's user avatar
2 votes
0 answers
895 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 ...
Jack Cole's user avatar
  • 171
-1 votes
1 answer
3k 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 ...
DIma's user avatar
  • 1

1 2 3
4
5
14