tagged [curl]

List all indexes on ElasticSearch server?

List all indexes on ElasticSearch server? I would like to list all indexes present on an ElasticSearch server. I tried this: but it just gives me this: I want a list of all indexes

23 Jun at 13:41

How to fix curl: (60) SSL certificate: Invalid certificate chain

How to fix curl: (60) SSL certificate: Invalid certificate chain I get the following error running `curl https://npmjs.org/install.sh | sh` on Mac OSX 10.9 (Mavericks): How do I fix this?

31 Oct at 17:13

cURL suppress response body

cURL suppress response body Is it possible instruct cURL to suppress output of response body? In my case, the response body is an HTML page, which overflows the CLI buffer, making it difficult to find...

1 Feb at 18:57

wget/curl in C#

wget/curl in C# I'm writing a scraper in C# and I'd like to download some data to files and submit some forms. I've been using `wget` and `curl` so far for that. How would I do that in C# (on Linux)? ...

6 Mar at 13:27

curl : (1) Protocol https not supported or disabled in libcurl

curl : (1) Protocol https not supported or disabled in libcurl I'm trying to install the Rails environments on Ubuntu 11.04. When I launch the command `rvm install 1.9.2 --with-openssl-dir=/usr/local`...

Assign output to variable in Bash

Assign output to variable in Bash I'm trying to assign the output of cURL into a variable like so: ``` #!/bin/sh $IP=`curl automation.whatismyip.com/n09230945.asp` echo $IP sed s/IP/$IP/ nsupdate.txt ...

26 Jan at 19:29

Can I call curl_setopt with CURLOPT_HTTPHEADER multiple times to set multiple headers?

Can I call curl_setopt with CURLOPT_HTTPHEADER multiple times to set multiple headers? Can I call [curl_setopt](http://php.net/curl_setopt) with `CURLOPT_HTTPHEADER` multiple times to set multiple hea...

28 Feb at 11:38

How to call cURL without using server-side cache?

How to call cURL without using server-side cache? Is there a way to tell cURL command not to use server's side cache? e.g; I have this curl command: `curl -v www.example.com` How can I ask curl to sen...

12 Jun at 18:44

Using cURL with a username and password?

Using cURL with a username and password? I want to access a URL which requires a username/password. I'd like to try accessing it with curl. Right now I'm doing something like: I get an error. I guess ...

1 Feb at 18:55

Difference between --cacert and --capath in curl?

Difference between --cacert and --capath in curl? When would one use the `--cacert` option vs. the `--capath` option within `curl` (CLI that is). `--cacert` appears to reference a monolithic file tha...

26 Mar at 20:53

php: Get html source code with cURL

php: Get html source code with cURL How can I get the html source code of `http://www.example-webpage.com/file.html` without using `file_get_contents()`? I need to know this because on some webhosts `...

28 May at 15:50

How to curl or wget a web page?

How to curl or wget a web page? I would like to make a nightly cron job that fetches my stackoverflow page and diffs it from the previous day's page, so I can see a change summary of my questions, ans...

8 May at 04:27

How to use curl in a shell script?

How to use curl in a shell script? I'm trying to run this shell script in order to install RVM in an Ubuntu box ``` #!/bin/bash RVMHTTP="https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-i...

29 Nov at 23:20

How to send file contents as body entity using cURL

How to send file contents as body entity using cURL I am using cURL command line utility to send HTTP POST to a web service. I want to include a file's contents as the body entity of the POST. I have ...

24 Jan at 23:38

curl: (7) Failed to connect to port 80, and 443 - on one domain

curl: (7) Failed to connect to port 80, and 443 - on one domain This question shows research effort; it is useful and clear I have checked the cURL not working properly When I run the command `curl -I...

24 Aug at 10:7

How do I install the ext-curl extension with PHP 7?

How do I install the ext-curl extension with PHP 7? I've installed PHP 7 using [this repo](http://php7.zend.com/repo.php), but when I try to run `composer install`, it's giving this error: > - With PH...

27 Nov at 12:38

How to urlencode data for curl command?

How to urlencode data for curl command? I am trying to write a bash script for testing that takes a parameter and sends it through curl to web site. I need to url encode the value to make sure that sp...

26 Jul at 14:6

curl error 18 - transfer closed with outstanding read data remaining

curl error 18 - transfer closed with outstanding read data remaining when retrieving data from a URL using curl, I sometimes (in 80% of the cases) get Part of the returned data is then missing. The we...

1 Mar at 09:55

How to count items in JSON object using command line?

How to count items in JSON object using command line? I'm getting this kind of `JSON` reply from a `curl` command: ``` [ { "cid": 49, "pyn": "yi4", "hans": "亿", "hant": "億", "tid": 68, "l...

9 Sep at 13:9

What is the curl error 52 "empty reply from server"?

What is the curl error 52 "empty reply from server"? I have a cron job setup on one server to run a backup script in PHP that is hosted on another server. The command I've been using is Lately I've be...

23 Nov at 22:30

Can PHP cURL retrieve response headers AND body in a single request?

Can PHP cURL retrieve response headers AND body in a single request? Is there any way to get both headers and body for a cURL request using PHP? I found that this option: is going to return the , but ...

14 Mar at 17:58

Curl not recognized as an internal or external command, operable program or batch file

Curl not recognized as an internal or external command, operable program or batch file I have installed `curl` and have set it as `environment variable` in my system. But when running the `curl` comma...

26 Feb at 09:22

Passing a URL with brackets to curl

Passing a URL with brackets to curl If I try to pass a URL to curl that contains brackets, it fails with an error: However, if I escape both brackets, it appears to work: How do I fix this? Is there a...

20 Sep at 08:33

Downloading all the files in a directory with cURL

Downloading all the files in a directory with cURL I am using cURL to try to download all files in a certain directory. here's what my list of files looks like: ![enter image description here](https:/...

25 Sep at 06:28

curl POST format for CURLOPT_POSTFIELDS

curl POST format for CURLOPT_POSTFIELDS When I use `curl` via `POST` and set `CURLOPT_POSTFIELD` do I have to `urlencode` or any special format? for example: If I want to post 2 fields, first and last...

14 Feb at 11:54