Questions tagged [curl]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
116 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....
3
votes
1answer
2k 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 ...
1
vote
0answers
3k 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
399 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
5k 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
94 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
2k 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
2k 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
117 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
9k 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
99 views

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

I am currently running the command: echo "hello world" | xargs curl http://localhost:8080/function/func_wordcount -d" which takes the stdout of echo "hello world" and then pipes it to func_wordcount ...
0
votes
2answers
1k 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
181 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
3k 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
2k 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
610 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
6k 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 ...
1
vote
2answers
793 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 ...
1
vote
1answer
1k 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 ...
0
votes
3answers
121 views

wget only parent pages using {..}

I have been trying to download specific pages in website. The site uses common URL to go to next pages like below. https://example.com/pages/?p=1 https://example.com/pages/?p=2 https://example.com/...
1
vote
0answers
3k views

curl fails TLS handshake… sometimes

I am trying to download Python 3.6.5 using curl as part of the pyenv script to make virtual environments. Sometimes it works, sometimes it doesn't. I pinpointed the command at which it fails to this: ...
0
votes
2answers
314 views

Controlling curl output on Debian

I'd like to run a curl command and only have content written to stdout if there is an error. When I run the command from the terminal I get this functionality by default. When I run the command from ...
1
vote
0answers
447 views

Static build of curl with openssl: `/lib64/libcrypto.so.10: version `OPENSSL_1.0.2' not found`

This error looks like this is not static build - and OpenSSL not inside of curl, but after configure among others I see: ... SSL support: enabled (OpenSSL) ... Build libcurl: Shared=no, Static=...
1
vote
0answers
781 views

how to make cURL send AUTH command for FTPS?

this is causing headache for a long time now. Situation: i have a virtual machine that sits behind a proxy that shields it off the internet. The Proxy seems to work fine. I want to use cURL to ...
0
votes
1answer
48 views

Display a table from a website

I have an idea for what I want to do, but am not sure exactly what to do. I want to curl http://www.bostonglobe.com/sports/tvradio/listings then somehow display a table on this page. The table is <...
1
vote
0answers
446 views

Using curl with certificates on Ubuntu 16.04

I'm trying to use the API for the Swedish payment service Swish on my Ubuntu server, but I can't get it to work. I believe the problem is with the certificates. I have generated a CSR (without a pass ...
0
votes
1answer
5k views

Using curl to download an image from an url that has no file extension

I want to download the image on https://lorempixel.com/1280/320/nature/1/ with curl. curl https://www.python.org/static/apple-touch-icon-144x144-precomposed.png > image.png works fine! (from ...
0
votes
2answers
2k views

Debian 9.4: cannot install php7.2-curl

Trying to install php7.2-curl library from a well-known repository deb.sury.org on Debian 9.4. But it gives the error: The following packages have unmet dependencies: php7.2-curl : Depends: libcurl4 ...
0
votes
0answers
2k views

what are curl default timeouts in linux [duplicate]

my question is different from Does curl have a timeout?, because that question is related to set timeouts to curl command. But my question is not to set timeouts, I want to know default behavior of ...
0
votes
1answer
779 views

Can't get Curl working in Linux

I can't get curl working in Arch Linux with php7, i'm getting the following message: Fatal error: Uncaught Error: Call to undefined function curl_init() I have the curl package installed and php ...
0
votes
1answer
419 views

cannot touch '/usr/local/bin/goss': Permission denied

I have already used curl -fsSL on Ubuntu 16.04,without any problems. If I go for sudo curl -fsSL https://goss.rocks/install | sh then I have touch: cannot touch '/usr/local/bin/goss': ...
2
votes
2answers
9k views

How do you send data to a web socket using curl?

I'm using a bash shell and tryhin gto communicate with a web socket. I found this script -- https://gist.github.com/htp/fbce19069187ec1cc486b594104f01d0 that is supposed to connect to a web socket, ...
1
vote
1answer
420 views

Increment value at runtime while running loop in cURL

for ((i=1;i<=5;i++)); do curl -s --user 'api:key- MY_KEY' \ https://api.mailgun.net/v3/sandbox/messages \ -F from='test1@gmail.com' \ -F to='test@site.com' \ -F subject='Test ...
0
votes
1answer
1k views

Can't get 200 OK when checking URL?

I was trying to follow this tutorial: https://www.shellhacks.com/check-website-availability-linux-command-line/ When using the curl -Is http://www.shellhacks.com | head -1command, I am unable to get ...
0
votes
1answer
1k views

Use curl command output to send email

My goal is to monitor a web page for text and trigger an email to myself either if the text is found, or if it is not, whichever is easier. I know there are some packages out there already to do this, ...
1
vote
0answers
357 views

R: how to install RCurl on Debian Linux 9 (stretch)?

I have tried all kind of libcurl apt packages and so forth. I need RCurl for h2o in Debian Stretch. How can I install RCurl in Debian? ** R ** data ** inst ** preparing package for lazy loading ** ...
1
vote
0answers
317 views

Supplying curl with multiple options that require <file or input>

I'm trying to execute a curl command from the terminal. I need to provide HTTP authentication I need to POST a .jar file This works when HTTP authentication is disabled: curl --data-binary @~/file....
0
votes
1answer
3k views

CURL request using .netrc file

I am trying to write a script which is saving the credentials to a .netrc file and then it is reading from the file in order to pass them to a curl command and saves the returned cookie file for ...
29
votes
7answers
11k views

Download big file over bad connection

Is there an existing tool, which can be used to download big files over a bad connection? I have to regularly download a relatively small file: 300 MB, but the slow (80-120 KBytes/sec) TCP connection ...
0
votes
1answer
605 views

How to remove a special character in my curl output using grep,sed or awk

I'm trying to remove \r\n in the output of my curl my code is: curl -s -u ian.guinto:W0lfg@ng131994 --request GET --url 'https://jira.toro.io/rest/api/2/issue/OJTSYSAD-829/comment' -H "Content-Type: ...
0
votes
1answer
5k views

cURL requests in bash

I am trying to write a script which will execute two curl requests in bash. This is my code: #!/bin/bash ipadd="192.168.1.1" start_url="http://$ipadd/startPlayer" stop_url="http://$ipadd/stopPlayer"...
-1
votes
3answers
142 views

Download the part of the web page [duplicate]

I would like to "parse" some list of web pages (html), the "parsing" is only about redirecting what's between <title> </title> tags to some specific files. Firstly I did for cycle with ...
0
votes
2answers
2k views

Curl not returning response

I have a scenario where I was using curl --noproxy "*" https://.. to get the response but suddenly when I use it now it doesn't return me the response instead it says curl: (60) Peer certificate ...
0
votes
1answer
2k views

how to put variable in CURL header using shell script?

I want to call an API using shellscript but I m not able to put header properly...whats going wrong in my script... thanks in advance. shell script : #!/bin/bash curl -H "Authorization: Basic ...
1
vote
0answers
5k views

curl 7.58 under proxy issue ssl wrong version

I just installed an Arch based distribution Antergos. Then I installed few packages with pacman. Now after a restart I am getting ssl errors while trying to clone git. fatal: unable to access 'https:...
6
votes
1answer
3k views

Lots of red in htop — does that mean my tasks are tripping over each other?

I've read that the color red indicates "kernel processes." Does that mean little daemons that are regulating which task gets to use the CPU? And by extension, transaction costs in an oversubscribed ...
0
votes
1answer
38 views

Define a custom string wrapper symbol

I need to post to Slack with a curl REST call like this: curl -X POST --data-urlencode 'payload={"channel": "#deploybots", "username": "${GIT_BRANCH}-BOT", "text": "Message --> ${1}", "icon_emoji":...
2
votes
1answer
397 views

cURL 404 Error - URL encoding with SharePoint URL

I am trying to connect to a SharePoint URL and pull the data in the form of a .json file. My URL looks like this: .../_api/web/lists/GetByTitle('titles list')/items If I give the URL as it is ...
0
votes
2answers
271 views

How to convert e-05 to 0.0000

When I trying to parse html via curl+jq I see that where it see 0.0000123 it printing for example 1.23e-05.How can I convert this? Or if is so hard please write some sed or awk alternatives.
0
votes
1answer
110 views

Execution of a remote Bash script in GitHub fails with various methods - Maybe due to Windows10

I have this remote Bash script In GitHub that I already executed successfully line by line, several times (in different versions). As it is quite frustrating to copy paste all lines each test, I ...