Questions tagged [curl]

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

Filter by
Sorted by
Tagged with
2
votes
1answer
206 views

Piping content from Github into crontab

I'm not in front of a testing environment right now but I desire to download a Bash script with curl and then load its content into crontab. The content as appears in Github raw document is for ...
-3
votes
1answer
1k views

curl remove an url [closed]

when i put sudo apt-get update i got this I want to remove urls with skype and nodejs, i try this but doesn't work
0
votes
1answer
631 views

curl tries to connect to 127.0.0.1:9050 by default

whenever I use curl it tries to connect to tor service by default. my tor service is turned off and network proxy is disabled in network settings. here is the output of the command curl google.com: ...
1
vote
0answers
763 views

Automatic Login with cURL without php

I'm working in a little project using a script to do scraping. I'm trying login in https://www.plusdede.com/login, it's a simple login with a numeric captcha. The code which is important is: <div ...
1
vote
0answers
336 views

Can I wget or download files that are not linked to from a server?

I have a url such as myurl.com/contents and I am trying to fetch all contents in the folder. Some files, such as myurl.com/contents/unlisted-file.1 are not linked to anywhere. These files are ...
0
votes
0answers
245 views

Why curl command stops downloading file immediately?

I set up a TFTP server in Windows and then in a embedded Linux, I ran the command curl tftp://192.168.10.2:69/xxx-fng-in stall.sh|sh but it stops immediately. Any suggestion?
1
vote
2answers
335 views

meaning of naked dashes in this curl/tar example

I know from this SO answer that naked dashes are used by various Unix utilities to specify that the user wants to use stdin or stdout instead of a regular file. However, that doesn't quite help me ...
1
vote
2answers
7k views

What is the meaning of “curl -k -i -X” in Linux?

I have read the man pages of Curl, but I can't understand what those parameters (k, i and X) mean. I see it used in a REST API call, but can someone please explain what those three parameters do? It's ...
0
votes
1answer
430 views

How to download a file in terminal which link redirects and seems to work in GUI only?

I am trying to figure out a way to download this file: zoiper5_5.2.6_x86_64.tar.xz from this link: https://www.zoiper.com/en/voip-softphone/download/zoiper5/for/linux from this web page ...
0
votes
0answers
54 views

Choose default cURL version

on a CentOS 7 server the cURL version is 7.29, but there has been fixes in SMTP operation and I remember I used cURL 7.48 which works fine for me. The problem is I can't get PHP from yum to be ...
2
votes
4answers
4k views

Using Bash to split XML data into variables

I am trying to download some files from a services. The files are found in an XML file. The XML file can have a single file or several files to download. However, now I have a problem with my script. ...
0
votes
1answer
2k views

$1 in curl json body now working

I have a script like this: #!/bin/bash curl --request POST --url http:/myUrl.com/etc --header 'content-type: application/json' --data '{"myId": $1, "services": {"ENABLE_THE_SERVICE": "1"}}'; Then ...
1
vote
1answer
381 views

openssl command queries NGINX by ip and not hostname

Here's a situation I am having a hard time understanding. I have nginx setup with two blocks for hosts like the following server { server_name _; listen *:443 default_server deferred; ...
0
votes
0answers
983 views

Download a URL containing a token query string

To explain what I want I will give an example (My foreign friends sorry it is in Arabic not English :D ) . Let's take this URL for example. When you open it a blue square will appear after a 5 ...
0
votes
1answer
646 views

Curl request exits at five minutes unexpectedly

I'm using a shell script to fire off a curl request that deletes all documents of a certain type in my Elasticsearch cluster. If successful, Logstash starts and attempts to reindex the deleted type's ...
1
vote
1answer
285 views

How can I find subdomains of splunk.com using http reponse?

I have sent http request to the "splunk.com" with usin that command curl -L splunk.com I got html codes. I want to find subdomains of that website by parsing the html codes.
1
vote
0answers
670 views

Posting file name and file contents to remote server via curl command

I'm trying to write a bash script that would post the name and content of a local file to a remote server via curl. Local file name has the following format: /tmp/DeviceID-Date.txt For eg. 178-...
2
votes
1answer
483 views

curl not receiving JSON in open vpn

Netgear R7000 router running Tomato v1.28.0000 -2017.2-kille72- K26ARM USB AIO-64K Goal: receive port number from JSON using curl When I run this script in shell it works, but not when I call the ...
1
vote
0answers
973 views

Curl fails on TLS connection: sslv3 alert bad record mac

I'm running a fresh debian stretch installation in a VM using QEMU on a Ubuntu 14.04 host. When I use curl on any HTTPS resource like curl -vL https://get.rvm.io/ I get this error: * Trying 2600:...
3
votes
1answer
54 views

Store the most recent N MBs of a stream?

I currently use wget or curl to download a continuous AAC-stream. I would like to limit what's stored on disk to the most recent N MB. In other words, some kind of size limited FIFO-buffer (I guess?). ...
2
votes
2answers
6k views

Why do I get “Protocol http not supported or disabled in libcurl”?

I am trying to add a repository to my OpenSUSE Leap 42.3 (running on WSL) with the following command. sudo zypper addrepo https://download.opensuse.org/repositories/devel:languages:php/...
2
votes
2answers
12k views

Specify file name with curl --upload-file

When uploading a file with curl's --upload-file option, how do I specify a file name different than the one on disk? With the -F option, it can be done like this, I think: curl -F 'file=@/path/to/file/...
3
votes
1answer
2k views

How does `curl` on the command line determine the MIME type of a file being uploaded?

When uploading a file as a form field in curl (for example, curl -F 'file=@path/to/file' https://example.org/upload), curl sometimes sets the MIME type differently than what is returned by other ...
1
vote
2answers
4k views

Identify when curl command has finished successfully

I have a script which using a curl command to send a request to a web service, the output of the web service is written to a file. The file is then moved to another location. Instead of using a delay ...
0
votes
2answers
253 views

Why can't I authenticate a curl request when piping to less or more?

(CentOS 7) When I try a curl command like curl -u elastic -X GET 'http://localhost:9200/*' | more, I find that after typing only a single letter, the command executes as if I have pressed enter, and ...
1
vote
1answer
3k views

How to upload a file using http PUT with httpie?

For some webserver testing, I use curl for file upload like this: $ curl --silent --digest --user user:pass --upload-file filename http://server/dir/ Now I tried to archive the same function but ...
2
votes
1answer
2k views

How to access http server from bash script with existing tcp connection?

In a bash shell scipt, I use several command line tools (wget, curl, httpie) to test my http server. When using e.g. curl to invoke a GET request, I see that a tcp connection is opened to my server ...
0
votes
1answer
7k views

Protocol “http” not supported or disabled in libcurl

I am trying to install owncloud, using sudo apt-get owncloud-client. I always get the following errors: Err:1 https://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_16.04 ocqt562-...
1
vote
2answers
888 views

Curl script with offset increment [closed]

how to increment offset number in curl script? my script is: #!/bin/bash curl -a --silent --header "api-key: 4444444455" --header "accept: application/xml" --header "cache-control: no-store" "https:/...
2
votes
1answer
6k views

curl --referer : no URL specified!

Why I can't do curl --referer in my machine? When I do curl -i --referer https://google.com All I got is this: curl: no URL specified! curl: try 'curl --help' or 'curl --manual' for more ...
2
votes
1answer
5k views

curl get all links of a web-page

I used to utilize following command to get all links of a web-page and then grep what I want: curl $URL 2>&1 | grep -o -E 'href="([^"#]+)"' | cut -d'"' -f2 | egrep $CMP-[0-9].[0-9].[0-9]$ | ...
1
vote
1answer
852 views

Trouble getting openSSL 1.0.2 working on CentOS 5.11

My office has some old REHL 5.11 servers on which I need to update the openSSL to take advantage of the latest TLS version. To figure it out, I created a CentOS 5.11 virtual server. I found this ...
0
votes
0answers
2k views

AIX Curl command

I have a cURL command that I am running on RedHat 7.3 like the following: curl -X POST https://myserver:443/ -H 'cache-control: no-cache' -H 'content-type: application/json'-d '{ "action": "test", "...
0
votes
1answer
2k views

Grep cURL output

When I run curl https://example.com -o example.html 2>&1 | grep -P "\d.*\d" I get this output (in red): 100 1270 100 1270 0 0 318 0 0:00:04 0:00:04 0:00:00 318 What I ...
-1
votes
1answer
383 views

ftp multiple files to another server via loop

I try to transfer huge amount(578) of file among of 774 files with ftp. I have the file name which should transfer. the file name format is like : TS_20170818_171102_17.csv and it's not a in same ...
0
votes
1answer
1k views

Session id using curl_7_35

I want to use curl to get the session id. So, please help me if there is any way to get the session id using Curl. Earlier I was using Open SSL to capture the session id. Now, I don't want to use it. ...
0
votes
1answer
609 views

curl wget - How to ignore the HTML Tag and headers [duplicate]

How to get only the content for web page what I see in browser... I don't want the headers and any HTML tag.. exp- http://www.linfo.org/cat.html.. I want only the content.. Please help
-1
votes
1answer
2k views

Unable to parse bash variables in curl command

Hey I am using conduit curl method to create tasks from post. It work fine when I run from terminal with hardcoded values. But when I try to execute it with variables it throws an error: Script: #!/...
-1
votes
1answer
741 views

Selecting a value from a drop-down menu with curl

I'm trying to fetch this page on Linux, in a bash script: https://www.worldcoinindex.com/coin/siacoin When it's firstly explored on browser, it shows off Siacoin's prices in USD. On the page there's ...
-2
votes
1answer
507 views

linux + how to download the json2csv tool [closed]

we have redhat linux how to download and install the json2csv tool by yum ( which repository ) or by curl/wget from https://github.com/korczis/json2csv
4
votes
2answers
25k views

curl with variables on bash script

When I use actual values on curl command in the next script, it's working and giving me a result back, but when I use variables it does not work properly I think this is issue with how I define them ...
4
votes
2answers
11k views

Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)

I'm trying to update to node 7.x through the terminal on my raspberry pi and I keep encountering this error. The command I'm using is: sudo curl -sL https://deb.nodesource.com/setup_7.x | bash - ...
67
votes
3answers
5k views

How does curl protect a password from appearing in ps output?

I noticed some time ago that usernames and passwords given to curl as command line arguments don't appear in ps output (although of course they may appear in your bash history). They likewise don't ...
2
votes
2answers
216 views

Golfing multiple curl statements in series

#!/usr/bin/env bash URL_1=http://www.squid-cache.org/Versions/ URL_2=$(curl "$URL_1" | sed -n '/Stable Versions/{p; :loop n; p; /rolling/Iq; b loop}' | grep -i rolling | cut -d \" -f 2) URL_3=$(...
2
votes
1answer
1k views

curl POST request not working

There's this website: yamli.com which provides a form to transcript latin to arabic words. I checked the source code and found out that it uses an HTML form: <form id="search_form" action="http:/...
0
votes
0answers
650 views

Cannot wget a direct link - received 403 Forbidden [duplicate]

I have a direct link that I grabbed from Firefox's Download section after downloading the file. I can plug this link into any browser whether I previously logged in to OneDrive Business or not and I ...
0
votes
0answers
44 views

What's wrong with my curl?

I'm trying to download some data from a VoIP phone on the network using the curl command without the certificate being validated, I've tried this command but it's just writing the text "Unauthorized ...
0
votes
1answer
339 views

Curl trying to get contents but capturing load page

help https://workflowy.com/s/CbqM.M3tcZFhqd3#/?q=ADM-NF01 I am trying to capture Feature Roadmap V0 - Alpha Basic A11Y and I18N Foundations for Accessibility and Internationalisation ADM-NF01 But ...
0
votes
1answer
1k views

Get “'http_proxy' had unsupported trailing garbage” from .curlrc

For the longest time, whenever I execute "curl", I get the following: /home/me/.curlrc:1: warning: 'http_proxy' had unsupported trailing garbage Warning: /home/me/.curlrc:2: warning: 'https_proxy' ...
1
vote
0answers
320 views

Adding a postfix when downloading files using CURL if a file by that name already exists

I'm downloading files from a POST endpoint using a command on the form while true; do curl -O -J http://domain/endpoint; done This endpoint "returns" a new file on each POST call. Curl gives each ...