Questions tagged [curl]

cURL is an HTTP client library and command line tool.

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

Curl : Recv failure : Connection Reset By Peer and Unix Socket Crash

I'm trying to set up a unix socket for gunicorn and to ping it from curl (running curl --unix-socket /run/gunicorn.sock http://www.example.com --trace-ascii dump.txt). Unfortunately, the response from ...
-1
votes
0answers
12 views

How to set CA cert gloabally?

I'm trying to set up a ca cert globally on CentOS 7. Instead of specifying everytime my cert like : curl -vL --cacert /etc/pki/tls/certs/cacert.pem https://www.google.fr I would like to use it like ...
-1
votes
0answers
60 views

curl: (7) Failed to connect to example.com port 443: Connection refused

I set my addon IPs in netplan. I cant send requests by curl to another host. my server is new. Server: Linux Dedicated OS: Ubuntu 20 Addon IPs: 10 curl error: curl: (7) Failed to connect to ...
-1
votes
0answers
23 views

Centos 7 curl 60 on google.com

I'm trying to fix the follwoig error : curl: (60) SSL certificate problem: unable to get local issuer certificate More details here: https://curl.se/docs/sslcerts.html curl failed to verify the ...
-1
votes
1answer
122 views

PHP and Nginx on docker, curl get Connection refused in php container

I am working in a local environment with docker. I have an nginx web container and a php container which are in the same network. I build the php container from my own dockerfile (with phpfpm and ...
0
votes
1answer
35 views

Different response when hitting curl command with & without single quotes

I am hitting admitAD API using curl command. If i below URL curl -L -H 'Authorization: Bearer MY_TOKEN' -X GET https://api.admitad.com/payments/?limit=2&has_statement=0 I am getting response { ...
0
votes
1answer
25 views

How to use curl and telnet instead of cgi-fcgi?

I am using this script.c: #include <fcgi_stdio.h> #include <stdlib.h> int main (void) { while (FCGI_Accept() >= 0) { printf("Status: 200 OK\r\n"); printf("Content-...
0
votes
0answers
35 views

Create my own proxy server by using AWS Linux EC2 instance, Error: The connection has timed out

I have tried to create my own proxy server by using AWS Linux EC2 instance. I followed the steps from this article and this article. (Here is all the details and screenshots of steps) But after create ...
0
votes
0answers
118 views

Issue with api request from linux

I have issue with http bearer auth json post to api. Used apps or and php methods wget console curl php curl file get contents Sucessfull scenarios - post request Computer connected to same network ...
0
votes
0answers
26 views

How to route all traffic through another server using a single port before connecting to multiple transparent proxies?

I have the following environment : Server A : My server where all requests will originate from Server B : My server where I which to route all traffic from Multiple Proxies: C1, C2, C3, C4, etc : ...
0
votes
1answer
35 views

zsh use old binary after install new binary

I've upgraded curl from source by configure, make and sudo make install. But, My zsh use old version binary. What the reason for this behavior? Environment CentOS Linux release 7.8.2003 zsh 5.3.1 ...
1
vote
1answer
47 views

Curl generated cookie file is not working when I try to send it on the next curl call

I access url with: curl 'localhost:8013/api/auth/login' -d '{"login": "*", "password": "*", "auth_method": "local"}' -c .auth when I want ...
0
votes
0answers
47 views

Kernel TCP stack not forwarding packets immediately to remote server

I'm trying to figure out why a single HTTP POST request over a re-used TLS connection is still taking roughly twice the roundtrip time (RTT). The client is running on Debian 10.8 within a container on ...
0
votes
1answer
35 views

Different curl responses when using Gitbash vs windows command prompt

I have a https restful endpoint which I am querying with curl using a command like this: curl -k --cert client-cert.pem:password https://test-server@mycompany.com/api/vi/getinfo In Gitbash this works ...
0
votes
1answer
97 views

Corrupted curl download when using the resume option?

I'm using curl to download a 10MB file over a poor connection. I use the -C - option in a loop to resume the download if it breaks (see the snippet below). The resuming works when I test locally and ...
0
votes
0answers
81 views

Can I make curl (or wget) ignore a specific TLS error? (bypassing expired certificate without disabling cert validation)

I'm working on a script which depends on a remote API endpoint which I do not control. Today, my script stopped working, because the endpoint's SSL certificate expired today and they haven't yet fixed ...
0
votes
0answers
319 views

Nginx controller in kubernetes cluster is not forwarding curl request to service

My Ingress Controller is not forwarding the request to the service, how can i fix it? I can see that my Ingress is missing addresses, but i do not know why. I have a Kubernetes Cluster running on a 1 ...
0
votes
1answer
28 views

curling service inside kubernetes cluster blocked by corporate proxy

I have a Kubernetes Cluster running behind a corporate proxy. I am not using Minikube. I have http_proxy, https_proxy and no_proxy set in //etc/environment. no_proxy has 127.0.0.0 and every node-ip ...
0
votes
1answer
14 views

Use of :80 in proxy URL

Setting some Squid proxies up, and trying to figure out some behavior. Squid in a pass-all configuration, with the linux node set to forward 80 to port 3128, which Squid is listening on. I do have an ...
0
votes
1answer
40 views

curl prioritize the IP provided to resolve arg (or another) over other DNS options

When attempting to use curl to get around a misconfigured DNS entry (experimenting and not known at the time), --resolve seemed like the right way to go. However, the argument didn't behave the way I ...
1
vote
0answers
20 views

Is there a tool I can use to test out multiple vpn tunnels in one machine?

I use wget -q -O https://checkmyip.com/csv to determine if I am connected to a VPN but I want to verify multiple VPN tunnels on the same machine. Is there a tool that can allow me to send a command ...
0
votes
0answers
233 views

CentOS 8 yum/dnf update fails over internet connection

I have a squid proxy server on CentOS 8 and whenever I install a package it returns lines along the following: [MIRROR] git-core-doc-2.27.0-1.el8.noarch.rpm: Curl error (3): URL using bad/illegal ...
2
votes
1answer
30 views

Curl only connects to localhost regarding of where i am connecting. RCA might be VPN

So, weirdly curl only connects to 'localhost' even if I am connecting to a different host. curl -v https://registry.npmjs.org/ * Trying 104.16.22.35... * TCP_NODELAY set * Connected to registry....
0
votes
1answer
152 views

curl nginx as proxy server with “-i” works but with “-I” 404

i'm trying to make nginx as proxy_server to nodejs app on port 3000 for testing purpose with compression, when doing this: curl -I -H 'Accept-Encoding: gzip, deflate' http://localhost/json i go this: ...
0
votes
0answers
298 views

TLS 1.3 Session Resumption Using Curl - Every other request uses full handshake

I am attempting to test TLS 1.3 session resumption between our embedded devices and cloud server (NGINX). Our embedded devices use libcurl, and have exhibited some odd behavior where only every other ...
0
votes
0answers
34 views

hashicorp vault and nesting of secret engines/secrets?

The structure as seen in VAULT UI is engine/userpasslist/db_admin_pass and I am trying to get password db_admin_pass only. Following code works fine: curl --header "X-Vault-Token: s....
2
votes
1answer
685 views

nginx does not respond correctly to HTTP/1.1

I'm having an issue where certain clients that first try to connect via HTTP/1.1 are not correctly getting forwarded to HTTPS curl -v http://indentationerror.com/ * Trying 217.45.175.173:80... * ...
0
votes
1answer
246 views

AWS SES emails going to spam

I have a domain on name.com and the website is hosted on AWS Lightsail. I have set up SES service for the emails. I am doing a curl request to my domain to send an email from the email server which is ...
1
vote
0answers
330 views

curl not sending credentials during negotiation

We have a Jenkins server that uses Kerberos-SSO, with a fallback to Basic if SSO is not configured on the browser or using curl. When I use curl with the --negotiate argument, however, it doesn't send ...
0
votes
0answers
54 views

varnish 6 behavior no-data POST

I'm facing a strange behavior on varnish 6, and I would need some advices to find out what's wrong. This occures on empty POST/PUT requests. Everything is working well on recipe platform but fails on ...
1
vote
0answers
49 views

PHP Curl process hitting a timeout when using Squid Proxy

I have a PHP process that running a CURL command to get the contents of a website. This works on 90% of websites that I try it on but one site in particular (the one I want to get the contents of) ...
0
votes
0answers
338 views

Is there an equivalent of using curl with a specified certificate for openssl?

Is there an equivalent of using curl with a specified certificate for openssl? For example, I'd like to achieve the following with openssl: curl --cacert test.pem https://vimmi.net I tried: openssl ...
0
votes
2answers
50 views

Device -> device traffic being blocked inside of network

I am running into a weird issue, which I have been trying to understand and fix for a few hours. I have three main machines, which are setup this way: M1: Raspberry pi 3 (raspbian lite), running ...
0
votes
1answer
460 views

Unable to use YUM. RHEL 8.2 server hosted in Azure

I have a Red Hat server hosted in Azure and when I try to use yum to install software or do a system update I get the below error, Errors during downloading metadata for repository 'rhui-rhel-8-for-...
-1
votes
1answer
907 views

How to grep (Select-String) the output of curl (Invoke-WebRequest) in PowerShell

I'm trying to curl a website and grep it for a specific line in PowerShell. How can I do that? Here's the equivalent of what I'm trying to do, but in BASH user@host:~$ curl -s www.isxkcdshittytoday....
1
vote
1answer
4k views

How to diagnose “CA certificate too weak” error, how to use the CA cert anyway?

I have to use a service that uses self-signed certificate (from Ubuntu). I have added the company's CA to the trusted list (Ubuntu). After that "self signed certificate in chain" error is ...
1
vote
0answers
36 views

Add HTTPS url property to Google Search Console through API

I had a look on this page to see how to add a website https://developers.google.com/webmaster-tools/search-console-api-original/v3/sitemaps/submit This code works : curl --request PUT \ 'https://www....
2
votes
1answer
925 views

curl & wget cannot resolve internal dns names within the aks cluster but nslookup , host , dig work fine

I have a managed kubernetes instance on azure. I am very sure that the core dns is working and the dns pods are healthy. I have a couple of services frontend-service with one pod - Image [nginx-...
0
votes
0answers
35 views

Using curl to move the files within different directories of the SFTP server

There is a requirement in my project in which i need to move the .csv files present in a particular directory of the SFTP server to the Archived one in the same SFTP server. We dont have SSH done for ...
0
votes
1answer
23 views

how to make a curl POST request without displaying the response body, but keep the response header?

Hello friendly people of serverfault, As stated above, i am looking for a way to hide the body, as it is just noise during testing. I'd normally use -I, but that forces a HEAD request, which collides ...
2
votes
0answers
300 views

Centos 7: Cannot curl localhost nor internal IP : no route to host

Centos 7, lamp stack. ​ firewall is turned off, sealinux is disabled, Iptables looks fine ​ if you to localhost/api.php or internal-ip/api.php from a browser, it works fine, if you ping it's fine, if ...
0
votes
2answers
145 views

Why is curl failing to download from cache.ruby-lang.org when ping works?

I have an issue similar to this: Wget, Curl, Yum Fail but Ping works - CentOS 5 In my case, I have 2 Ubuntu 18.04 servers which are failing to download from cache.ruby-lang.org: curl -O https://cache....
0
votes
0answers
4k views

curl: (60) Peer's Certificate issuer is not recognized

I have the following error when I try to curl a server : curl -u User:Pass 'https://mydomain/remote.php/dav/files/User/Folder' -X PROPFIND --data '<?xml version="1.0" encoding="UTF-8&...
0
votes
0answers
287 views

curl + wget cannot make https connections

My Ubuntu 16.04 system has the following problem: wget and curl hang indefinitely when connecting to a server with HTTPS Both programs work fine with HTTP Example for curl: curl -vv https://google....
0
votes
1answer
91 views

How to upload files to remote server using curl on Ubuntu 18?

I have noticed that my application on Ubuntu 18 is not uploading files to remote server which was working ok on Ubuntu 16. When I do trace I see only one difference. Ubuntu 16: Content-Disposition: ...
1
vote
1answer
124 views

On and off requests take very long on my system

EDITED: I have and issue in my AWS system. Every few requests takes almost exactly 130 seconds to answer. When I say a few I mean 5 to 25 or so. Normally if you cancel the slow request and send again ...
1
vote
1answer
523 views

curl and wget fail to verify wildcard Let's Encrypt certificate, but browsers work fine

We've obtained a wildcard certificate from Let's Encrypt for civility.social and *.civility.social, using certbot. This works fine on all browsers and with curl and wget when verifying https://...
1
vote
0answers
24 views

Problems with accessing external content as sudo/root

System environment: VM running under Debian 9, firewall is iptables. UFW, etc not installed. I run into problems when spinning up a kubernetes cluster by executing sudo kubeadm init. The call causes a ...
0
votes
2answers
744 views

Check SSL certificate used by an apache virtual host locally

I just updated a certificate for a particular apache virtual host which is behind a load balancer. Restarted the virtualhost with the command httpd -k restart -f /etc/httpd/someweb.tx.com/conf/httpd....
0
votes
1answer
53 views

How to query Oracle VM REST API with curl?

I've searched in the Oracle VM documentation, but I wasn't able to find any example on how to query the Oracle VM REST API from curl or any similar alternative: https://hostname:port/ovm/core/wsapi/...

1
2 3 4 5
12