|
|
# Curl Installation
|
|
|
|
|
|
### Requirements
|
|
|
|
|
|
Install requirements
|
|
|
```
|
|
|
$ sudo apt-get install build-essential nghttp2 libnghttp2-dev libssl-dev
|
|
|
$ sudo apt-get build-dep curl
|
|
|
```
|
|
|
### Installation
|
|
|
|
|
|
Clone curl source code using `git`.
|
|
|
```
|
|
|
$ git clone https://github.com/curl/curl
|
|
|
```
|
|
|
JetConf is using `http2` so enagle it in build configuration settings.
|
|
|
```
|
|
|
$ ./buildconf
|
|
|
$ ./configure --with-nghttp2 --prefix=/usr/local --with-ssl=/usr/local/ssl
|
|
|
```
|
|
|
In configuration list check if `HTTP2 support` is `Enabled`.
|
|
|
|
|
|
Now you can **install** curl.
|
|
|
```
|
|
|
$ make
|
|
|
$ sudo make install
|
|
|
$ sudo ldconfig
|
|
|
```
|
|
|
### Curl command for JetConf
|
|
|
After this command you shoud get some data from **jetconf server** in json.
|
|
|
```
|
|
|
curl --http2 -k --cert-type PEM -E <path to .PEM cert> -X GET https://<jetconf server ip adress>:8443/restconf/data
|
|
|
``` |