cURL is a CLI tool for issuing HTTP GET, POST, & PUT request.
1
vote
0answers
26 views
cURL and wget cannot resolve hosts, but apt-get works
I've installed Ubuntu server 16.04 in a VirtualBox. If I try to install software with apt-get it works fine, but curl test.de or wget get.typo3.org/8.4.0 shows me that the host could not be resolved. ...
0
votes
1answer
14 views
curl -L not working on openSUSE Issue with Certificate
For some strange reason I can't execute curl -L https://github.com/Blosc/c-blosc/archive/v1.8.1.tar.gz. I need it for some package installation of Blosc that utilizes curl.
I get the error:
curl: (...
3
votes
2answers
259 views
Pipe the result of a cut command to curl [duplicate]
I have a csv file that contains 3 fields per line.
firstname,lastname,url
I'm trying to access the url via the following pipeline:
grep theName file.csv | cut -d, -f 3
then I want to add another ...
1
vote
1answer
33 views
Log Curl Output
I am trying to log my curl output which looks as following: (which are randomly produced every 10th sec)
<RTW>
<RESULT>{ "Result": { "something1": 707, "something2": { "array": ["95", "...
1
vote
0answers
14 views
some characters show after put objects on amazon s3
I use libcurl to put objects on amazon s3 service. Here is my original contents in a.txt:
aaaaaaaaaaaaaaaaaaaaaaaaaaa
bbbbbbbbbbbbbbbbbbbbbbbbbbb
...
17
votes
1answer
1k views
Why won't curl download this link when a browser will?
I am running Mac OS 10.11.6 El Capitan. There is a link I would like to download programmatically:
https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.16-osx10.11-x86_64.dmg
If I paste this URL ...
0
votes
2answers
65 views
How to grab the head section of a website using the curl and grep command?
I'm taking my Linux+ midterm and I'm stuck on a question where I'm supposed to copy the head section including the tags and output it to a file. My midterm is due on the 5th so it would really help if ...
-4
votes
1answer
39 views
CURL Operation failed
I want to make this upload to my server:
curl -u ****:**** -T - sftp://*****.com:22/apps/jboss-5.1.0/server/fab_server/deploy -v -k
The problem is that I'm getting this error:
% Total % ...
1
vote
1answer
74 views
What's the difference between using netcat (nc) and curl for HTTP requests?
I'm using curl to request a specific URL and getting 200 OK response:
curl -v www.youtypeitwepostit.com
* About to connect() to www.youtypeitwepostit.com port 80 (#0)
* Trying 54.197.246.21...
* ...
1
vote
1answer
31 views
Match a number with fixed digits while scraping web content
I'm trying to parse a source web pages, trying to find all href similar to this:
href='http://example.org/index.php?showtopic=509480
where the number after showtopic= is random (and with 6 fixed ...
2
votes
1answer
114 views
compiling curl with openssl giving wrong openssl version
I have found various answers on this, but I can't get anything that works for me. I am trying to compile curl with nghttp2 on my CentOS server.
I have compiled it all ok, but my problem is that curl -...
0
votes
2answers
36 views
Long Delay Before Curl Download [closed]
I have a bash script that checks to see if a file exists in a web directory. If the file doesn't exist, it simply quits. If the file does exist in the web directory, it downloads it.
The script works ...
0
votes
2answers
26 views
Upgrading curl but 'openSUSE-12.3-Update-Non-Oss' appears to be outdated
My webserver is running a Magento 1.8.1.0 that uses php-curl under the hood.
It runs openSUSE 12.3 and:
PHP 5.3.17
Apache 2.2.29
mysql Ver 14.14 Distrib 5.5.33
OpenSSL 1.0.1j
The curl version ...
1
vote
2answers
59 views
“unable to get local issuer certificate” and “tlsv1 unrecognized name”
I am having a problem with the Paypal IPN postback verification. The problem came up a month ago, I believe when Paypal updated their security standards and their certificates.
My website is running ...
1
vote
1answer
35 views
Piping multiple inputs into Ghostscript
I am trying to create a one-line Linux command to combine two PDF files - which are downloaded from a URL - using Ghostscript. However, I do not want to create any temporary files (everything should ...
0
votes
0answers
64 views
gnome software not working on fedora 24
Gnome software on fedora 24 is not working. It shows
Detailed errors from the package manager follow:
Curl error (28): Timeout was reached for https://mirrors.fedoraproject.org/metalink?repo=fedora-...
3
votes
1answer
297 views
Uploading multiple files via ftp using curl
I'm trying to upload all the text files within the current folder via FTP to a server location using CURL. I tried the following line:
curl -T "{file1.txt, file2.txt}" ftp://XXX --user YYY
where ...
2
votes
1answer
48 views
Parsing HTML with cURL POST
I'm sending POST request to some link with valid username and password.
I use this command: curl -X POST -F '[email protected]' -F 'password=123' http://my.site.com/login
but it got Moved ...
0
votes
1answer
55 views
How to download an ISO and directly create a bootable USB
How can I transfer an .iso file to an USB in parallel to the download of this file so that downloaded data gets directly on my USB without passing through my hard drive.
0
votes
0answers
15 views
Storing the html page of the redirected page using curl after submitting the form details
I am using curl for sending the form details and I want to store the redirected page in the file. But the html code of the home page gets stored rather than the redirected page.
curl -X POST -d "...
2
votes
1answer
38 views
Docker file fail to cd into a directory
Using this this Dockerfile , line 21 gives the error:
/bin/sh: 1: cd: can't cd to /home/meteorapp/meteorapp/app
Any idea how to go about fixing this?
2
votes
0answers
127 views
Fedora 24 : Gnome Software Center and Curl not working behind proxy servers
I have Fedora 24 Workstation on my laptop. My internet access is through proxy server only.
I have successfully configured proxy settings for dnf and wget. I can install and updates packages using ...
1
vote
1answer
23 views
Help me understand variable place holder for curl command in Dockerfile
I am learning about Dockerfile and had not worked with curl before.
I am trying to understand line 26 in this Dockerfile .
&& bash -c 'curl "https://nodejs.org/dist/$(<.node_version....
3
votes
2answers
50 views
Extract a value from command output and use the value as a parameter to a subsequent command
Hi there I am trying to have
curl -v --request POST https://example.com --data-urlencode "username=usr]” --data-urlencode "password=[pass]”
pass the output to the [TOKEN] field in here:
curl -D - --...
2
votes
3answers
125 views
Merge jq output into a comma seperated string [duplicate]
I am trying to curl some URL which return json file, then I want to parse hosts from it and create a comma separated string.
I have the first part working
curl -s -u "admin:admin" -H "X-Requested-...
0
votes
1answer
106 views
concurrent curl could not resolve host
I try to run cocurrent curl but it can easily report "Could not resolve host". To run curl parallel, I use "parallel".
parallel :::: ./a.sh ./a.sh
from api server
% Total % Received % Xferd ...
0
votes
1answer
49 views
curl hangs during http download
I have a VM running CentOS 6. On this Linux box, I run 4 curl download concurrently.
In some case, one of the curl download hangs. ps shows that curl process is still there. And netstat shows the ...
1
vote
1answer
61 views
How to pass curl result as parameter
I have a web app that simply returns an IP address. I want to pass that IP result to another batch script that fires off an application that's supposed to connect to that IP address.
Here's my test:
...
2
votes
1answer
72 views
How to Resolve undefined reference to 'RAND_egd'
Debian 8 Jessie, OpenSSL version 1.1.0,
cURL version: 7.50.2
I am trying to build curl on a Linux Debian system. All stages go well up until trying to build with make command. The linking stage fails ...
0
votes
0answers
30 views
Not able to login using curl
I am trying to use curl to login to a page that have the following login form.
<form method=post action="/scripts/wa.exe" >
<input type="hidden" name="LOGIN1" value="">
<table align="...
4
votes
2answers
73 views
How to pass argument to script which is input to bash
Right now I have one-liner like this:
curl -fsSL http://git.io/vvZMn | bash
It is downloading script and passing it to bash as stdin file. I would like to run this script with additional argument ...
4
votes
1answer
47 views
Curl equivalent of wget's --read-timeout=X
I'm trying to migrate my script from wget to curl.
wget -c --tries=0 --read-timeout=20 [URL]
What's the curl equivalent of this?
More specifically: what is the curl equivalent of --read-timeout=X ?
1
vote
2answers
70 views
Curl and Google Image
I tried to scrape Google image search result page with curl from Terminal, but it doesn't give me an actual html source that I can view with "View Page Source" in Firefox. I tried both "curl [url]" ...
0
votes
1answer
45 views
Sanitize Json for sending with Curl
I have to send a POST request to some service with json payload, and it includes some user input. That input variable needs to be Json-encoded to prevent injection attacks.
Code example that ...
0
votes
1answer
65 views
Hacking attempt, process running under 'apache' user
Our system blocked an hacking attempt coming from a local process running under the apache system user.
Process not allowed.
{
"USER": "apache 16",
"PID": "617",
"%CPU": "0.0",
"%MEM": "0.0 80",
"...
0
votes
0answers
19 views
squid block not logged users
I have a squid configured to work with windows domain users.
If I try to acess some page with command like
curl --trace -x http://my-proxy:3128 --proxy-user user.squid:pass -L http://unix....
0
votes
1answer
72 views
extract lines and phrases from a text file
I've got a text file from which I'd like to extract some lines and phrases. I'd also like to insert a couple of characters in some spots. It's a file I intend to download periodically over the course ...
0
votes
1answer
97 views
Directory Upload to HTTP
Using curl with argument --ftp-create-dirs, I can upload blank directory to FTP/FTPS server. Is there any utility/tool by which I can upload blank/empty directory to HTTP/HTTPS server ?
1
vote
1answer
167 views
how to update cURL openssl version for paypal IPN
I run Linux Debian 7
After hours of trying to get Paypal IPN I found out that you have to have at least 1.0.1 version of openssl.
The issue is server does have 1.0.1 version but cURL version is 0.9.8....
1
vote
1answer
49 views
Can not connect to the host itself
Well, the problem is simple. I have the site based on apache and trying to execute cron job at this site from the same server. Let's say my site http://example.com and cronjob is
/usr/bin/curl http:/...
0
votes
1answer
327 views
download a torrent file from kickass torrent from linux cli
this one has been bugging me for a while and I cannot find any answer. In fact I usually get google results for cli torrent clients rather than what I want.
So rtorrent is notorious about crashing ...
0
votes
0answers
134 views
cURL hanging on connection
I am using cURL from bash script. I have this code in a loop to download multiple files from remote server
curl --fail --silent ${url} -o ${local_filename}
Most of the time, this works as supposed. ...
0
votes
1answer
159 views
How do I pipe the output of a curl command to an environment variable and use it in another curl command?
I have a REST endpoint that I can get an access token from. To get the access token (JSON web token, JWT) and export that value as an environment variable, I do the following.
export ACCESS_TOKEN=$(...
0
votes
0answers
47 views
Why is this curl command stalling when inside a while read loop?
This curl command, when used alone, is performing its job perfectly fine. But since curl does not support wildcard or pattern globbing, and that per shellcheck errors "find commands inside for loops ...
0
votes
0answers
130 views
How to compile wget or curl with https support statically on armv5tejl?
I have an IP camera with BusyBox. It has armv5tejl architecture
When I want to use wget to download something from https://....
When I try to use it with https I get an error:
wget: not an http or ...
0
votes
2answers
119 views
recursively download from a website
I am trying to get images from a website url "www.example.com/products" in this products folder lots of subfolders there I need to download the products folder.
In the www.example.com/products, www....
1
vote
0answers
141 views
How can I get a translated string from Google Translate with curl etc?
How can I get a translated string, e.g. English to Spanish, from Google Translate with some command line tools like curl? I looked at the page source but Google Translate doesn't seem to include the ...
1
vote
1answer
451 views
How to provide parameters using text file in curl?
I'm trying to pass parameters in text file and read it in curl command.
Like:I added username and password in text file
Sample.txt:
username:"admin"
password:"admin"
In curl command, I'm reading ...
0
votes
1answer
47 views
Unable to download data using curl for loop
I'm trying to download data from the following link
export ICTP_DATASITE='http://clima-dods.ictp.it/data/Data/RegCM_Data/EIN15/1990/'
These are the codes :
for type in "air hgt rhum uwnd vwnd"
do
...
1
vote
0answers
64 views
round robin for curl and dnsmasq
I have setup dnsmasq to the basic configuration, pointing a file with two IP addresses.
10.0.0.1 a.b.c
10.0.0.2 a.b.c
When I do nslookup or dig on a.b.c, I see round robin seems to be in effect (as ...