docs: function getMediaByHTTP (uri, cert, mode, user, safe, bufferURI) {
    return new Promise(function (resolve, reject) {
      var cookiePath = __dirname + '/../data/cookie.json'
  
      var cookies = readCookie(cookiePath)
  
      if (cookies) {
        options.headers['Set-Cookie'] = 'connect.sid=' + sid + '; Path=/; HttpOnly; Secure'
      }
  
      var options = {
        url: uri,
        key: fs.readFileSync(cert),
        cert: fs.readFileSync(cert),
        headers: { // We can define headers too
          'Accept': 'application/json'
        }
      }
  
      request.get(options, function (error, response, body) {
        writeCookie(response, cookiePath)
  
        if (!error && response.statusCode === 200) {
          json = JSON.parse(body)
          resolve(json)
        } else {
          reject(error)
        }
      })
    })
  }