Questions tagged [curl]

curl is a data transfer utility used for a multitude of network=related applications (such as scraping data).

Filter by
Sorted by
Tagged with
-1
votes
0answers
14 views

Steam Storefront API, curl request from PHP wrong language [closed]

I'm trying to fetch information about Steam games with CURL. I followed the PHP documentation for async request to get data from english and russian details URLs, but both return the information in ...
0
votes
0answers
17 views

In this situation, would the URL be sent to the proxy server?

Let's say I make a cURL request to http://127.0.0.1/secret.php, having set the cURL options CURLOPT_PROXYTYPE and CURLOPT_PROXY so that it's using a valid, real HTTP proxy server to which I have ...
1
vote
2answers
43 views

Insert output of curl command to a line number in a file

Working on a script to automate a few things. Been having and issue with running a sed command to inser the output of curl to a line number in a file I have tried multiple variations of the command ...
0
votes
0answers
19 views

How to reuse a ssl connection fetching imap commands to gmail server with curl?

curl -v --url "imaps://imap.gmail.com" --user "user:pw" Currently, curl opens and closes for every imap fetch the connection. Is there away to tell curl to reuse the connection and making imap ...
1
vote
0answers
26 views

curl ftp: Cannot connect on aws instance

When I try to download a file via curl/ftp while on an AWS box, it just hangs: $ curl -vvvvv -4 --ftp-pasv ftp://ftp.ncdc.noaa.gov/pub/data/ghcn/daily/ghcnd-stations.txt * Trying 205.167.25.101:21.....
0
votes
0answers
12 views

how to installed the latest docker version without dependencies issues

We prepare the following in order to install docker on rhel 7.5 version ( from the list https://download.docker.com/linux/centos/7/x86_64/stable/Packages/ ) , and only the latest curl https://...
0
votes
1answer
35 views

Download ISO file from redhat site

we want to download from redhat site rhel 7.6 ISO file in order to install docker ( https://nathancatania.com/posts/installing-docker-on-red-hat-with-no-internet-access ) redhat site - https://access....
0
votes
1answer
9 views

curl error SSL_ERROR_SYSCALL

Running the command curl -v https://myhost, curl shows the error curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to IP:PORT What might be the root issue?
2
votes
2answers
74 views

Documentation for mapping CURLOPT_* to CLI flags

I'm working on debugging cURL calls in an application (PHP-based, specifically), and would really like to test identical calls via the command line. The application uses many CURLOPTS, and some of ...
0
votes
0answers
20 views

How to download a website's source maps?

I don't want to write a complete script for this; there must be some simple way to download source maps. By this I mean go to a website (assuming it has source maps) in Firefox, open Developer Tools, ...
-2
votes
1answer
40 views

How to send 200 curl requests in specific one second of time in Linux terminal?

First of all let me explain my problem and what I am going to do. I would like to post 200 curl requests (the response of them is not important) to an API of my web server only in one second and ...
0
votes
1answer
25 views

cURL: How do I set the email subject when using -F (multipart / attachment)

I'm trying to send an email using cURL. It has to include an attachment, so I'm using the -F / --form option: (it's a single line, but I wrote here this way for clarificaiton) curl smtp://smtp....
0
votes
0answers
55 views

Github API error “Problems parsing JSON” when using curl but works fine with Postman

I am trying to create a release using Github's API. My request works fine in Postman but no matter what I've tried it always fails with curl, including if I just translate my Postman request into ...
0
votes
0answers
32 views

How do I grab the icon of apps on an specific URL

Consider this URL. When you visit that page you see the app's icon at the top left. I have a lot of pages like that that I want to grab the icon. I am writing an article for a blog and I need these ...
0
votes
1answer
34 views

How do i filter request from a json using curl?

so I recently deployed this Go app on the web https://20200329t202730-dot-ipengine-dev.appspot.com/ and the format that it shows the IP currently is { "ip": "169.254.1.1" } How do I only get the ...
0
votes
1answer
37 views

Not able to curl to my VM when ssh is working

I'm trying to run a simple flask server on an Ubuntu VM. I can ssh into it,with myuser@123.456.789, but if I execute curl 123.456.789:8000 I get an operation timeout, even though the server is ...
0
votes
0answers
52 views

Why Postman's generated curl unable to import payload body in a new postman tab?

For an existing api in postman, I am trying to generate its curl using the 'Code' button available in postman. it is generating below curl :- curl --location --request POST 'https://covered-card-dev....
0
votes
1answer
301 views

HOW do you update curl on windows 10?

So I have an issue where I cannot develop on my Windows device because the curl that comes bundled with it produces next InitializeSecurityContext failed: SEC_E_ILLEGAL_MESSAGE (0x80090326) How ...
0
votes
0answers
712 views

Windows 10 WSL cURL can't access localhost with error (Failed to connect to localhost port 80: Connection refused)

The issue with my WSL is the following my WSL can't make a cURL request anywhere under localhost. For this example, I have created a page that returns hello world. My cURL looks like this (note that ...
0
votes
1answer
72 views

How do I upload a file using Curl FTP on MacOS?

Need help with curl FTP upload--going bonkers. Here's the code: curl -T -g /Users/myaccount/Documents/xxx/xxx_Finals_Weekly/xxx_2020-03-02/XX_XXXXX+xxxxx_xxxxxxx[7]/20200302_xxx.mp3 ftp://myuser:...
0
votes
1answer
119 views

How to change my cron job to auto update the geolite2?

A Prestashop e-commerce website is using MaxMind's GeoLite2-City database for country blocking. Instead of geoipupdate it uses this cron command to keep that database up to date: /usr/bin/curl -L --...
1
vote
0answers
448 views

Trying to Install libcurl3 and libcurl4

I am trying to follow this guide to use libcurl3 and 4 but am unable to install libcurl3 with apt as it is unavailable. root@raspberrypi:/home/pi/tss/tsschecker-master/git/tsschecker# apt install ...
0
votes
1answer
78 views

Error when trying to compile in Linux

I'm trying to compile tsschecker from GitHub and am having an issue. I went through and installed all the dependencies then managed to run the autogen.sh script without issue. I'm now trying to run ...
0
votes
0answers
1k views

curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL every second request

Currently I have extremely strange behavior of curl. When I do curl https://developer.here.com/ -iv once, it responds fine with code 200 and text/html content, but immediately after that with second ...
0
votes
0answers
283 views

Telegram sendMesage invokes webhook from client only

I have installed Telegram webhook. When I send message from any client, Telegram invokes webhook - and I see call to hook in log. But if I use curl -s -X POST https://api.telegram.org/bot<token>...
-1
votes
1answer
82 views

How to stop a curl download started with nohup?

How do I see and stop a curl download with the command being: nohup curl -s -O https://urllink.com/file.txt &
0
votes
1answer
30 views

Openvpn failing to send cURL request through user based script

I am trying to authenticate my OpenVPN clients (with a username and password) using a bash script. Here is part of my server side config: client-to-client username-as-common-name client-cert-not-...
2
votes
0answers
38 views

pycurl and curl not working without sudo

sorry for my poor English i have more than two network interfaces and i want send request with specific interface . here is my code in with pycurl: def curl_post(url, data, iface=None): c = ...
0
votes
0answers
81 views

Posting a file to docker image running an http server

I am running the following docker image which runs an HTTP server. docker run --rm -ti -p 8080:8080 --name http-server -v DIRECTORY_TO_EXPOSE:/public redsadic/docker-http-server From this command I ...
1
vote
1answer
119 views

How to curl and parse endpoint data with Bash?

I am trying to hit an endpoint http://myapp.com/health and get the version value. How would I do that? Note that I plan to run this script in TeamCity. Response from http://myapp.com/health: { "...
3
votes
1answer
183 views

Download and extract archive using PowerShell

Using PowerShell 5.1, how can I download a tar.xz archive and extract it without writing it to disk first? All these attempts: Invoke-WebRequest https://www.examle.com/archive.tar.xz -...
0
votes
0answers
45 views

Creating a custom right click context menu that runs script on selected file?

So basically I want to be able to right click on a video file, and have a custom command in the context menu that inserts the name of the file into the following code then runs it. curl https://api....
0
votes
1answer
251 views

php curl not returning bash result

I have a file on the remote server called test.sh which returns two lines when called from the command line with './test.sh'. So far so good. I also have a php file with a curl command called result....
0
votes
1answer
74 views

Removing BASH continuation line prompt

I've been a pretty long-term user of Linux, Solaris and bash but have never found a solution to this problem. This must be pretty common so curious if others found a better way to do this. I am ...
1
vote
1answer
30 views

cURL zip file is not a valid archive

I wrote a script to download a zip file based on some user inputs. The file downloads but cannot be opened by a zip file extractor. Git Bash on Win 10. curl -u user:pwd -k -# -C - "$REQUEST_URL" -o "$...
2
votes
2answers
1k views

SSL cert does not work with IP address for SAN

I am trying to create an SSL certificate for a server which will work internally without giving warnings in Chrome. I've created it using SAN with multiple Subject Alt Names of localhost and the IP ...
0
votes
2answers
396 views

Keycloak returning {“error”:“Bearer token format error”} while getting clients by REST interface

Looking for a way to setup a keycloak env., create a new realm and populate with client/users to get a Minimal OAuth endpoint by using REST/CURL interface. Keycloak returning {"error":"Bearer token ...
0
votes
1answer
86 views

How to config MAC(message authentication code) using curl command

I want to download file via curl with sftp, like this curl --insecure "sftp://1.1.1.1:22" --user 'root:123123' and the sftp server make a security config(/etc/ssh/sshd_config, MACs hmac-sha2-512,...
0
votes
0answers
209 views

curl error TCP connection reset by peer when download DataStax Studio 2.0

I am trying to download DataStax Studio 2.0 on a server. I am using the curl command as follows: curl -L \ https://downloads.datastax.com/datastax-studio/datastax-studio-2.0.tar.gz What happens is ...
0
votes
0answers
316 views

/usr/lib/arm-linux-gnueabihf/libcurl.so.4:version 'CURL_OPENSSL_3' not found issue in Ubuntu 18.0.4

I came across an issue with respect the CURL_OPENSSL_3 while working on an example in buster, Raspberry Pi. I got the error with libcurl.so.4 and curl_openssk_3' version not found. I tried installing ...
1
vote
1answer
1k views

Using cURL to download a web stream

I am trying to download a streaming audio feed, from an online radio station. The station used to operate on a MP3 shoutcast feed, but now has upgraded to an AAC HTTP audio feed. I used to use "...
0
votes
0answers
110 views

Insecure post call in Postman

I am trying to make a https post call (insecure) and i have the below settings but still i am not able to get the response. I tried to hit the same url using git bash and i did get response. Please ...
0
votes
1answer
98 views

Copying download link to curl does not work

I'm downloading an ISO image with Opera browser on Linux: I get the download link by right click: Then I want to use curl on Linux console, but I cannot: curl -O https://software-download.microsoft....
0
votes
2answers
184 views

wget and curl stop very quickly and failed to download a file?

I am trying to download https://www.apache.org/dyn/closer.lua/spark/spark-2.4.4/spark-2.4.4-bin-hadoop2.7.tgz which is the latest spark version. when I tried wget https://www.apache.org/dyn/closer....
0
votes
1answer
27 views

HTTP response time

I want to ask a stupid question. Just using curl as an example. If we use curl -I https://a_big_file.com, maybe the big file upto 600MB, but i surprised to found it only used 0.160s, which is ...
0
votes
0answers
42 views

Use of libcurl3 and 4 simultaneously and prevent Seadrive from remove

I'm try now for weeks to prevent Seadrive from (auto)remove. Seadrive is using libcurl3 and when I install apps like Lutris Seadrive and libcurl3 get removed by APT. Is there a way to use libcurl3 and ...
1
vote
0answers
21 views

Get (only) content on URL on stdout

For a cron job mailer, I'd like to get the content of a URL to stdout. Both, wget http://example.com -O - and curl http://example.com >&1 add additional status information that I do not ...
0
votes
1answer
54 views

Using sed to filter RSS items

I would like to write a script that: Takes some RSS-Feed URL as input Downloads the feed Deletes all <item> ...</item> occurrences where the title tag does not mach some regular ...
0
votes
1answer
263 views

How do I solve the certificate error in debian. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none

So I am trying to install React on my computer which runs ChromeOS but I am running debian side by side. When I try to execute the command curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash ...
0
votes
2answers
81 views

having with connecting to site from command line

I am able to connect to following https://registry.terraform.io/.well-known/terraform.json using a browser When I try to connect to it from command line curl: (7) Failed to connect to registry....

1
2 3 4 5
12