Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [curl]

cURL is a CLI tool for issuing HTTP GET, POST, & PUT request.

1
vote
2answers
52 views

Streaming Data to REST Service Using Unix Pipes

Based on an answer to another question I am using curl to stream the stdout of one process as the entity of a POST request: myDataGeneratingApp \ | curl -H "Content-Type: application/json" -H "...
0
votes
0answers
37 views

curl: (35) error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure

I am using the curl ftp with ssl.the command line are as below. ./curl -v -T /tmp/resolv.conf -u user:passwd --ssl -l --insecure ftp://55.92.74.251:7020 the results are as below. ./curl: /...
0
votes
0answers
19 views

Use %{http_code} from cURL in bash While loop [closed]

I am writing a script that will a URL as an argument, this will then run all the time that the status code is NOT 200. I have the following script: #!/bin/bash URL="google.com" while [[ "%{http_code}...
1
vote
0answers
28 views

How to cross compile curl with ftps?

The status of configure are as below. curl version: 7.50.0 Host setup: arm-arago-linux-gnueabi Install prefix: /home/calvin/Downloads/ConnectedDVR/car_dvr_rdk/target/filesys/opt/dvr ...
0
votes
1answer
52 views

Using netcat and curl together in a bash script

This question is more related to infosec, but I can't seem to find a workaround in automating the following process: There is a cURL command which triggers a connection to the netcat. Without ...
0
votes
1answer
12 views

using curl with ${=(System.nanoTime())} inside req.xml file

i want to be able generating system nano second sequence when using curl my code is like this: curl -X POST -H 'Content-type: text/xml' -d @req.xml server_URL > result.xml the req.xml contains ...
1
vote
1answer
78 views

Execute as fast as possible many curl commands

I am gathering some data locally at home on a Raspberry Pi and I want to send the data as fast as possible to a REST API (which I own) on a server on the web. The locally gathered data could flow as ...
0
votes
1answer
20 views

curl from sitemap.xml?

I would like to curl a list of URLs (Namely as defined in https://example.com/sitemap.xml The closest I've been able to get to this goal is xargs curl --referer https://mywebsite.ca --user-agent "It ...
0
votes
1answer
29 views

Manual install of curl can't find openssl

My system (Centos7) install of curl doesn't support https. So I followed this answer downloaded from source and installed myself, using the ./configure --with-ssl option. I got the following warning ...
2
votes
1answer
28 views

Generating quoted command arguments

I'm working with a HTTP API that demands a very particular set of signed headers + JSON body. And I really want to cURL it for debugging and sanity in general. So, I've written a small script that, ...
0
votes
1answer
24 views

cURL “[skips] unknown form field” when passing semicolon-delimited string as form data

Problem I'm attempting to use cURL to POST form data to an API. The API's documentation states that it accepts multipart/form-data content types. Since this is part of a script, I'm trying to build ...
0
votes
0answers
46 views

curl: (25) Failed FTP upload: 553

I'm tyring to upload to a vsftpd ftp using curl with this line curl -T "$ATTACHMENTS_DIR${file##*/}" ftp://10.0.13.52/ -v I have enabled all the anon settings, I'm just creating a test script so ...
1
vote
1answer
64 views

A file on AkamaiGlobalHost downloads with a browser but not with curl

When I download the following file on my browsers (firefox & waterfox): https://launcher-public-service-prod06.ol.epicgames.com/launcher/api/installer/download/EpicGamesLauncherInstaller.msi?...
1
vote
0answers
19 views

openssl hangs on server

I have a problem on the server. Commands wget, curl and dependent commands are not working when a request is via 443 port. Commands hangs on 2-3 minutes and after just say "time out": # curl -v ...
0
votes
1answer
41 views

Unable to use curl with cookie-jar

I am trying to use curl for login request automation. Here, use of cookie-jar is must. When I use --cooki-jar cjar option, it shows following error. root@kali:~# curl --cookie-jar cjar --output /root/...
1
vote
1answer
32 views

PHP missing cURL and XDebug after upgrade

I just upgraded to Ubuntu 18.04.1 LTS and went to check on my local apache2 installation by adding phpinfo() to an index file. I do not see an entry for cURL or for XDebug. Here's what I did: ...
-2
votes
1answer
43 views

shell: evaluate an curl expression

In this following script i generate a status code and if the statusCode=200, i send the data else if the statusCode !=200 i générate à token and i send the message by recalling eval "$request_cmd". ...
0
votes
0answers
70 views

How do I download all images from a webpage with wget

I want to download all images from a webpage but when I type: $ wget -nd -r -P images -A "*.jpg, *.jpeg, *.png" "Path/to/url" wget not only downloads images from the webpage I want but it also ...
2
votes
2answers
35 views

Fetching, merging and exporting data from CURL

Before anything else, english isn't my laguage. I'll try to be understandable :-) Second, I am not a regular Linux user, I'm just starting out. I'm using curl and the API of a web chat platform to ...
1
vote
1answer
82 views

curl underlining head output

curl started acting strange for me in last few days, its double underscoring when reading headers: With -i it just double-underscores everything after header as well: When just reading body it ...
2
votes
1answer
96 views

Text file being identified as binary

Background I've been using lynx for a couple of years to dump automatically (via cron), process (using awk, sed, and tr), then mail (bsd-mailx) the contents of a web page. It's been working pretty ...
0
votes
1answer
27 views

Why does redirecting output to a file produce a table?

I would like to setup a cron job to periodically record a measurement. A USB memory stick is installed in a router: user@router:/tmp/home/root# uname -a Linux router 2.6.36.4brcmarm #2 SMP ...
0
votes
0answers
22 views

What is the fastest tool to sync http listening files

I have a huge number of files (text files) listening on http server. I am using cron-job to download these files as the number of files will grow dramatically. I am using wget as follows to download ...
0
votes
1answer
32 views

nghttp2 w/Buildroot on Raspberry Pi 3

I'm fairly new to buildroot and I'm trying to figure out the best way to get the "nghttp2" package added to my system so that I can utilize it in conjunction with curl on my embedded system. I'm not ...
5
votes
2answers
110 views

Standard Out Append to File Size Limitations

I'm pulling VIN specifications from the National Highway Traffic Safety Administration API for approximately 25,000,000 VIN numbers. This is a great deal of data, and as I'm not transforming the data ...
1
vote
2answers
107 views

cURL url_effective with Hash

If you put this link in a browser: https://unix.stackexchange.com/q/453740#453743 it returns this: https://unix.stackexchange.com/questions/453740/installing-busybox-for-ubuntu#453743 However cURL ...
0
votes
0answers
27 views

tails-installer fails to launch with libcurl4

Debian sid here 4.16.0-2-rt-amd64 After upgrading libcurl3 to libcurl4 (version: 7.60.0-2) I can no longer run tails-installer: $ tails-installer Traceback (most recent call last): File "/usr/bin/...
0
votes
1answer
65 views

Extract value from JSON document returned by curl

[ec2-user@ip-10-0-1-238 ~]$ curl "https://tools.keycdn.com/geo.json?host={18.205.6.240}" {"status":"success","description":"Data successfully received.","data":{"geo":{"host":"18.205.6.240","ip":"18....
1
vote
2answers
965 views

How to trust self-signed certificate in cURL command line?

I've created a self-signed certificate for foo.localhost using a Let's Encrypt recommendation and assigned that to a web server. I've verified that the server returns the relevant certificate: $ ...
3
votes
3answers
235 views

Test connectivity to hosts in file on port 22 with curl command

Id like to plug the following "curl" command into a bash script and run it against a hostfile of ip addresses then display the output as success or failure in an output file. curl -v telnet 10.10.10....
0
votes
1answer
45 views

jenkins behind nginx in kubernetes

I have a jenkins server behind a Kubernetes (AWS ELB - NGINX proxy ). When I try to trigger a remote job using curl it fails: # curl -X POST -H "$CRUMB" "https://jenkins:add91b3fefefefefef@jenkins....
1
vote
1answer
259 views

How to retrieve downloadable file size with curl command?

I have a requirement in the shell script like, have to download a file from "url" with curl command. before downloading that file I want to process that same file size in a method. Can anyone help me ...
0
votes
0answers
285 views

gnutls_handshake() failed - why?

I am running the following command: curl --tlsv1.2 -v --cacert ./mycert.crt --key ./key.pem --cert ./mycert.crt https://thirdparty.url I received the certificate from the third party I am working ...
0
votes
2answers
84 views

Simultaneously run curl and a process timer

I am trying to simultaneously run a curl command and, essentially, run a timer against how long it takes for it to complete. We have been having some issues with the URLs' response time and I would ...
0
votes
1answer
410 views

Configuring no_proxy on centOS [closed]

This issue is on centOS 7. I configured the proxy address following this process!, post which the network was working fine. But, I need few domain sites excluded from proxy. So, I added the ...
0
votes
2answers
39 views

Manipulating Output from cURL

i want a way to extract 2 instances of digits following 2 different strings out of a long line of text produced from cURL http://website.com/. So in this example output i want to grab both 23 and 144 ...
2
votes
1answer
173 views

how to update ca-bundle.crt with local company-root.crt

I am on RHEL 6.9 When I run the command sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc I get the following message curl performs SSL certificate verification by default, using ...
8
votes
1answer
1k views

Why does this curl command from firefox not download anything?

I opened https://raw.githubusercontent.com/andreafrancia/trash-cli/master/README.rst in Firefox, and copy the following curl command from Tools->Web Developer->Network: curl 'https://raw....
1
vote
3answers
41 views

How to redirect a running process output when the output device is deleted

I was trying to inspect a disowned curl process, which was started in an earlier login. I can see that it (PID 17193) is still running: $ ps aux | grep curl 17193 jack 7700 3692 S 1:00 20:48 ...
0
votes
2answers
2k views

Cannot find a valid baseurl for repo : base problem

I am trying to update yum but with no success. I have tried all existed solution and i cannot fix it This is the error I get [root@localhost ]# yum update Loaded plugins: fastestmirror, ...
2
votes
2answers
27 views

Converting stdout to raw-data not accepting multiple words using xargs and piping

First off I apologize for the title gore, I am struggling for a good way to summarize this issue. Anyway, I have been piping various things to functions using xargs and I am running into a weird ...
0
votes
2answers
215 views

How to know the URL when I submit a login form using POST method?

I want to download the html page using linux command wget Example: wget "https://stackexchange.com/users/5215687/dipankar-nalui?tab=inbox" To download this page I need to send the login ...
0
votes
1answer
56 views

Mismatched APT Dependencies

I have Synergy installed on Ubuntu 18.04 (this is not the new version 2, fwiw). Apparently, it has a requirement of libcurl3. However, the machine also runs as a hypervisor and I need to use ...
0
votes
1answer
568 views

json.cpp:474:23: fatal error: curl/curl.h: No such file or directory

I am trying to compile ChatScript but I get this error message: json.cpp:474:23: fatal error: curl/curl.h: No such file or directory When I try apt-get install curl it says: curl is already ...
0
votes
1answer
440 views

curl with Umlaut causes “JSON parse error: Invalid UTF-8 middle byte 0x22” [duplicate]

I'm running below curl command from the command line (Git Bash on Windows) or as part of a Bash Script. curl -s -X POST -H "Content-Type: application/json" -H "Accept: application/json" -d "{\"...
0
votes
1answer
156 views

How to pass header from stdin or local file into remote curl?

The following curl command works as expected: $ curl -H @- -vso/dev/null http://www.example.com <<<"Foo:Bar" * Rebuilt URL to: http://www.example.com/ ... > Accept: */* > Foo:Bar > ...
3
votes
0answers
550 views

Curling a https url via a proxy results in NSS error 5938

A B2B partner needs to make a callback from a Redhat machine to an API method on our web server (Centos7). We added their IP address to our software firewall but nothing was going through. They ...
0
votes
2answers
295 views

How to curl full web page content?

I want to download the full HTML source code of a X web page, however curling the X link will return partial HTML source code as that web page requires scrolling to see further content. It seems that ...
0
votes
0answers
103 views

download with curl no direct download files

I want to download installer file from sites like https://evernote.com/download or https://www.dropbox.com/install#downloaded with curl, but I don't know how to do it to download no direct link with ...
1
vote
1answer
265 views

Opening port not working

I have a python server running on port 8000 on a raspberry pi and would like to make it accessible within the local network, which is currently not working. The interface wlan0 is configured with ...