cURL is an HTTP client library and command line tool.
Questions tagged [curl]
646 questions
3
votes
4 answers
Why does squid reject this multipart-form-data POST from curl?
This fails:
$ curl --trace multipart-fail.log -F "source={}" http://127.0.0.1:3003/jslint
With a squid status 417 error, ERR_INVALID_REQ.
trace of failing curl request
trace of successful curl request that uses urlencoding (curl -d) instead of…

keturn
- 152
- 1
- 7
3
votes
1 answer
cURL can connect to localhost but browser cannot
My system is Win10 with WSL2, I ran a gogs docker container (from ubuntu in WSL):
83b2a8833235 gogs/gogs "/app/gogs/docker/st…" 17 minutes ago Up 17 minutes 0.0.0.0:10022->22/tcp, :::10022->22/tcp,…

Ken Tsoi
- 133
- 1
- 6
2
votes
0 answers
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 client is an Open-connect Cisco VPN.
when i…

Arash
- 121
- 1
- 5
2
votes
1 answer
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: application/json" -H "Content-Type: application/json" -d…

John Fox
- 310
- 4
- 15
2
votes
1 answer
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:
% Total % Received % Xferd Average Speed Time…

Jitesh T
- 21
- 1
- 4
2
votes
0 answers
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 i use:
sudo openvpn --config /etc/openvpn/CA\…

Jack Cole
- 171
- 7
2
votes
1 answer
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 internal site is not accessible (SSL by public CA)
curl…

Chandima Jayawickrema
- 21
- 1
- 1
- 2
2
votes
0 answers
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 enabled logging error_log info; but I don't see…

Dimitar Petrov
- 121
- 2
2
votes
2 answers
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/brand/product.html
How can I achieve such behavior…

Twissell
- 70
- 1
- 13
2
votes
2 answers
SSL / HTTP / No Response to Curl
I am trying to send commands to a SOAP service, and getting nothing in reply. The SOAP service is at a completely separate site from either server I am testing with.
I have written a dummy script with the SOAP XML embedded. When I run it at my local…

Alex McHale
- 123
- 1
- 5
2
votes
2 answers
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 NAMES
4146fd976547 …

MikiBelavista
- 333
- 2
- 5
- 12
2
votes
0 answers
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 directly on backend, the connection is closed…

matejuh
- 121
- 1
2
votes
1 answer
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). If I run the equivalent command in command-line…

geekydel
- 131
- 3
2
votes
0 answers
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 problem is I can't get the SSL handshake to…

eliocs
- 197
- 1
- 2
- 9
2
votes
1 answer
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 or less.
I've tested all kinds of scenarios, but…

SuperDog
- 71
- 1
- 3
- 10