<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://vidhost.net/api/?host=gdrive&id=1SJ73GGUbECKSKo0crIGjFRG8opz0lzK&ahost=youtube&aid=qGCg15vg8ls&poster=https%3A%2F%2Fvidhost.net%2Fposter.jpg&sub%5B%5D=https%3A%2F%2Fvidhost.net%2Fen.srt&sub%5B%5D=https%3A%2F%2Fvidhost.net%2Fid.srt&lang%5B%5D=English&lang%5B%5D=Indonesian",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => array(
    "authorization: Basic YWRtaW46RjFyM2I0TGw="
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
<?php

$request = new HttpRequest();
$request->setUrl('https://vidhost.net/api/');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData(array(
  'host' => 'gdrive',
  'id' => '1SJ73GGUbECKSKo0crIGjFRG8opz0lzK',
  'ahost' => 'youtube',
  'aid' => 'qGCg15vg8ls',
  'poster' => 'https://vidhost.net/poster.jpg',
  'sub[]' => array(
    'https://vidhost.net/en.srt',
    'https://vidhost.net/id.srt'
  ),
  'lang[]' => array(
    'English',
    'Indonesian'
  )
));

$request->setHeaders(array(
  'authorization' => 'Basic YWRtaW46RjFyM2I0TGw='
));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
<?php

$client = new http\Client;
$request = new http\Client\Request;

$request->setRequestUrl('https://vidhost.net/api/');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString(array(
  'host' => 'gdrive',
  'id' => '1SJ73GGUbECKSKo0crIGjFRG8opz0lzK',
  'ahost' => 'youtube',
  'aid' => 'qGCg15vg8ls',
  'poster' => 'https://vidhost.net/poster.jpg',
  'sub[]' => array(
    'https://vidhost.net/en.srt',
    'https://vidhost.net/id.srt'
  ),
  'lang[]' => array(
    'English',
    'Indonesian'
  )
)));

$request->setHeaders(array(
  'authorization' => 'Basic YWRtaW46RjFyM2I0TGw='
));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
GET /api/?host=gdrive&id=1SJ73GGUbECKSKo0crIGjFRG8opz0lzK&ahost=youtube&aid=qGCg15vg8ls&poster=https%3A%2F%2Fvidhost.net%2Fposter.jpg&sub%5B%5D=https%3A%2F%2Fvidhost.net%2Fen.srt&sub%5B%5D=https%3A%2F%2Fvidhost.net%2Fid.srt&lang%5B%5D=English&lang%5B%5D=Indonesian HTTP/1.1
Authorization: Basic YWRtaW46RjFyM2I0TGw=
Host: vidhost.net

var settings = {
  "async": true,
  "crossDomain": true,
  "url": "https://vidhost.net/api/?host=gdrive&id=1SJ73GGUbECKSKo0crIGjFRG8opz0lzK&ahost=youtube&aid=qGCg15vg8ls&poster=https%3A%2F%2Fvidhost.net%2Fposter.jpg&sub%5B%5D=https%3A%2F%2Fvidhost.net%2Fen.srt&sub%5B%5D=https%3A%2F%2Fvidhost.net%2Fid.srt&lang%5B%5D=English&lang%5B%5D=Indonesian",
  "method": "GET",
  "headers": {
    "authorization": "Basic YWRtaW46RjFyM2I0TGw="
  }
}

$.ajax(settings).done(function (response) {
  console.log(response);
});
fetch("https://vidhost.net/api/?host=gdrive&id=1SJ73GGUbECKSKo0crIGjFRG8opz0lzK&ahost=youtube&aid=qGCg15vg8ls&poster=https%3A%2F%2Fvidhost.net%2Fposter.jpg&sub%5B%5D=https%3A%2F%2Fvidhost.net%2Fen.srt&sub%5B%5D=https%3A%2F%2Fvidhost.net%2Fid.srt&lang%5B%5D=English&lang%5B%5D=Indonesian", {
  "method": "GET",
  "headers": {
    "authorization": "Basic YWRtaW46RjFyM2I0TGw="
  }
})
.then(response => {
  console.log(response);
})
.catch(err => {
  console.log(err);
});
var data = null;

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://vidhost.net/api/?host=gdrive&id=1SJ73GGUbECKSKo0crIGjFRG8opz0lzK&ahost=youtube&aid=qGCg15vg8ls&poster=https%3A%2F%2Fvidhost.net%2Fposter.jpg&sub%5B%5D=https%3A%2F%2Fvidhost.net%2Fen.srt&sub%5B%5D=https%3A%2F%2Fvidhost.net%2Fid.srt&lang%5B%5D=English&lang%5B%5D=Indonesian");
xhr.setRequestHeader("authorization", "Basic YWRtaW46RjFyM2I0TGw=");

xhr.send(data);
var http = require("https");

var options = {
  "method": "GET",
  "hostname": "vidhost.net",
  "port": null,
  "path": "/api/?host=gdrive&id=1SJ73GGUbECKSKo0crIGjFRG8opz0lzK&ahost=youtube&aid=qGCg15vg8ls&poster=https%3A%2F%2Fvidhost.net%2Fposter.jpg&sub%5B%5D=https%3A%2F%2Fvidhost.net%2Fen.srt&sub%5B%5D=https%3A%2F%2Fvidhost.net%2Fid.srt&lang%5B%5D=English&lang%5B%5D=Indonesian",
  "headers": {
    "authorization": "Basic YWRtaW46RjFyM2I0TGw="
  }
};

var req = http.request(options, function (res) {
  var chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    var body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
var request = require("request");

var options = {
  method: 'GET',
  url: 'https://vidhost.net/api/',
  qs: {
    host: 'gdrive',
    id: '1SJ73GGUbECKSKo0crIGjFRG8opz0lzK',
    ahost: 'youtube',
    aid: 'qGCg15vg8ls',
    poster: 'https://vidhost.net/poster.jpg',
    'sub[]': ['https://vidhost.net/en.srt', 'https://vidhost.net/id.srt'],
    'lang[]': ['English', 'Indonesian']
  },
  headers: {authorization: 'Basic YWRtaW46RjFyM2I0TGw='}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
var unirest = require("unirest");

var req = unirest("GET", "https://vidhost.net/api/");

req.query({
  "host": "gdrive",
  "id": "1SJ73GGUbECKSKo0crIGjFRG8opz0lzK",
  "ahost": "youtube",
  "aid": "qGCg15vg8ls",
  "poster": "https://vidhost.net/poster.jpg",
  "sub[]": [
    "https://vidhost.net/en.srt",
    "https://vidhost.net/id.srt"
  ],
  "lang[]": [
    "English",
    "Indonesian"
  ]
});

req.headers({
  "authorization": "Basic YWRtaW46RjFyM2I0TGw="
});


req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
import http.client

conn = http.client.HTTPSConnection("vidhost.net")

headers = { 'authorization': "Basic YWRtaW46RjFyM2I0TGw=" }

conn.request("GET", "/api/?host=gdrive&id=1SJ73GGUbECKSKo0crIGjFRG8opz0lzK&ahost=youtube&aid=qGCg15vg8ls&poster=https%3A%2F%2Fvidhost.net%2Fposter.jpg&sub%5B%5D=https%3A%2F%2Fvidhost.net%2Fen.srt&sub%5B%5D=https%3A%2F%2Fvidhost.net%2Fid.srt&lang%5B%5D=English&lang%5B%5D=Indonesian", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "https://vidhost.net/api/"

querystring = {"host":"gdrive","id":"1SJ73GGUbECKSKo0crIGjFRG8opz0lzK","ahost":"youtube","aid":"qGCg15vg8ls","poster":"https://vidhost.net/poster.jpg","sub[]":["https://vidhost.net/en.srt","https://vidhost.net/id.srt"],"lang[]":["English","Indonesian"]}

headers = {'authorization': 'Basic YWRtaW46RjFyM2I0TGw='}

response = requests.request("GET", url, headers=headers, params=querystring)

print(response.text)
require 'uri'
require 'net/http'
require 'openssl'

url = URI("https://vidhost.net/api/?host=gdrive&id=1SJ73GGUbECKSKo0crIGjFRG8opz0lzK&ahost=youtube&aid=qGCg15vg8ls&poster=https%3A%2F%2Fvidhost.net%2Fposter.jpg&sub%5B%5D=https%3A%2F%2Fvidhost.net%2Fen.srt&sub%5B%5D=https%3A%2F%2Fvidhost.net%2Fid.srt&lang%5B%5D=English&lang%5B%5D=Indonesian")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Get.new(url)
request["authorization"] = 'Basic YWRtaW46RjFyM2I0TGw='

response = http.request(request)
puts response.read_body
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("https://vidhost.net/api/?host=gdrive&id=1SJ73GGUbECKSKo0crIGjFRG8opz0lzK&ahost=youtube&aid=qGCg15vg8ls&poster=https%3A%2F%2Fvidhost.net%2Fposter.jpg&sub%5B%5D=https%3A%2F%2Fvidhost.net%2Fen.srt&sub%5B%5D=https%3A%2F%2Fvidhost.net%2Fid.srt&lang%5B%5D=English&lang%5B%5D=Indonesian")
  .get()
  .addHeader("authorization", "Basic YWRtaW46RjFyM2I0TGw=")
  .build();

Response response = client.newCall(request).execute();
HttpResponse<String> response = Unirest.get("https://vidhost.net/api/?host=gdrive&id=1SJ73GGUbECKSKo0crIGjFRG8opz0lzK&ahost=youtube&aid=qGCg15vg8ls&poster=https%3A%2F%2Fvidhost.net%2Fposter.jpg&sub%5B%5D=https%3A%2F%2Fvidhost.net%2Fen.srt&sub%5B%5D=https%3A%2F%2Fvidhost.net%2Fid.srt&lang%5B%5D=English&lang%5B%5D=Indonesian")
  .header("authorization", "Basic YWRtaW46RjFyM2I0TGw=")
  .asString();
CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "https://vidhost.net/api/?host=gdrive&id=1SJ73GGUbECKSKo0crIGjFRG8opz0lzK&ahost=youtube&aid=qGCg15vg8ls&poster=https%3A%2F%2Fvidhost.net%2Fposter.jpg&sub%5B%5D=https%3A%2F%2Fvidhost.net%2Fen.srt&sub%5B%5D=https%3A%2F%2Fvidhost.net%2Fid.srt&lang%5B%5D=English&lang%5B%5D=Indonesian");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "authorization: Basic YWRtaW46RjFyM2I0TGw=");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "https://vidhost.net/api/" {:headers {:authorization "Basic YWRtaW46RjFyM2I0TGw="}
                                        :query-params {:host "gdrive"
                                                       :id "1SJ73GGUbECKSKo0crIGjFRG8opz0lzK"
                                                       :ahost "youtube"
                                                       :aid "qGCg15vg8ls"
                                                       :poster "https://vidhost.net/poster.jpg"
                                                       :sub[] ["https://vidhost.net/en.srt" "https://vidhost.net/id.srt"]
                                                       :lang[] ["English" "Indonesian"]}})
var client = new RestClient("https://vidhost.net/api/?host=gdrive&id=1SJ73GGUbECKSKo0crIGjFRG8opz0lzK&ahost=youtube&aid=qGCg15vg8ls&poster=https%3A%2F%2Fvidhost.net%2Fposter.jpg&sub%5B%5D=https%3A%2F%2Fvidhost.net%2Fen.srt&sub%5B%5D=https%3A%2F%2Fvidhost.net%2Fid.srt&lang%5B%5D=English&lang%5B%5D=Indonesian");
var request = new RestRequest(Method.GET);
request.AddHeader("authorization", "Basic YWRtaW46RjFyM2I0TGw=");
IRestResponse response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "https://vidhost.net/api/?host=gdrive&id=1SJ73GGUbECKSKo0crIGjFRG8opz0lzK&ahost=youtube&aid=qGCg15vg8ls&poster=https%3A%2F%2Fvidhost.net%2Fposter.jpg&sub%5B%5D=https%3A%2F%2Fvidhost.net%2Fen.srt&sub%5B%5D=https%3A%2F%2Fvidhost.net%2Fid.srt&lang%5B%5D=English&lang%5B%5D=Indonesian"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("authorization", "Basic YWRtaW46RjFyM2I0TGw=")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
#import <Foundation/Foundation.h>

NSDictionary *headers = @{ @"authorization": @"Basic YWRtaW46RjFyM2I0TGw=" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"https://vidhost.net/api/?host=gdrive&id=1SJ73GGUbECKSKo0crIGjFRG8opz0lzK&ahost=youtube&aid=qGCg15vg8ls&poster=https%3A%2F%2Fvidhost.net%2Fposter.jpg&sub%5B%5D=https%3A%2F%2Fvidhost.net%2Fen.srt&sub%5B%5D=https%3A%2F%2Fvidhost.net%2Fid.srt&lang%5B%5D=English&lang%5B%5D=Indonesian"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "https://vidhost.net/api/?host=gdrive&id=1SJ73GGUbECKSKo0crIGjFRG8opz0lzK&ahost=youtube&aid=qGCg15vg8ls&poster=https%3A%2F%2Fvidhost.net%2Fposter.jpg&sub%5B%5D=https%3A%2F%2Fvidhost.net%2Fen.srt&sub%5B%5D=https%3A%2F%2Fvidhost.net%2Fid.srt&lang%5B%5D=English&lang%5B%5D=Indonesian" in
let headers = Header.add (Header.init ()) "authorization" "Basic YWRtaW46RjFyM2I0TGw=" in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
$headers=@{}
$headers.Add("authorization", "Basic YWRtaW46RjFyM2I0TGw=")
$response = Invoke-WebRequest -Uri 'https://vidhost.net/api/?host=gdrive&id=1SJ73GGUbECKSKo0crIGjFRG8opz0lzK&ahost=youtube&aid=qGCg15vg8ls&poster=https%3A%2F%2Fvidhost.net%2Fposter.jpg&sub%5B%5D=https%3A%2F%2Fvidhost.net%2Fen.srt&sub%5B%5D=https%3A%2F%2Fvidhost.net%2Fid.srt&lang%5B%5D=English&lang%5B%5D=Indonesian' -Method GET -Headers $headers
$headers=@{}
$headers.Add("authorization", "Basic YWRtaW46RjFyM2I0TGw=")
$response = Invoke-RestMethod -Uri 'https://vidhost.net/api/?host=gdrive&id=1SJ73GGUbECKSKo0crIGjFRG8opz0lzK&ahost=youtube&aid=qGCg15vg8ls&poster=https%3A%2F%2Fvidhost.net%2Fposter.jpg&sub%5B%5D=https%3A%2F%2Fvidhost.net%2Fen.srt&sub%5B%5D=https%3A%2F%2Fvidhost.net%2Fid.srt&lang%5B%5D=English&lang%5B%5D=Indonesian' -Method GET -Headers $headers
curl --request GET \
  --url 'https://vidhost.net/api/?host=gdrive&id=1SJ73GGUbECKSKo0crIGjFRG8opz0lzK&ahost=youtube&aid=qGCg15vg8ls&poster=https%3A%2F%2Fvidhost.net%2Fposter.jpg&sub%5B%5D=https%3A%2F%2Fvidhost.net%2Fen.srt&sub%5B%5D=https%3A%2F%2Fvidhost.net%2Fid.srt&lang%5B%5D=English&lang%5B%5D=Indonesian' \
  --header 'authorization: Basic YWRtaW46RjFyM2I0TGw='
http GET 'https://vidhost.net/api/?host=gdrive&id=1SJ73GGUbECKSKo0crIGjFRG8opz0lzK&ahost=youtube&aid=qGCg15vg8ls&poster=https%3A%2F%2Fvidhost.net%2Fposter.jpg&sub%5B%5D=https%3A%2F%2Fvidhost.net%2Fen.srt&sub%5B%5D=https%3A%2F%2Fvidhost.net%2Fid.srt&lang%5B%5D=English&lang%5B%5D=Indonesian' \
  authorization:'Basic YWRtaW46RjFyM2I0TGw='
wget --quiet \
  --method GET \
  --header 'authorization: Basic YWRtaW46RjFyM2I0TGw=' \
  --output-document \
  - 'https://vidhost.net/api/?host=gdrive&id=1SJ73GGUbECKSKo0crIGjFRG8opz0lzK&ahost=youtube&aid=qGCg15vg8ls&poster=https%3A%2F%2Fvidhost.net%2Fposter.jpg&sub%5B%5D=https%3A%2F%2Fvidhost.net%2Fen.srt&sub%5B%5D=https%3A%2F%2Fvidhost.net%2Fid.srt&lang%5B%5D=English&lang%5B%5D=Indonesian'
import Foundation

let headers = ["authorization": "Basic YWRtaW46RjFyM2I0TGw="]

let request = NSMutableURLRequest(url: NSURL(string: "https://vidhost.net/api/?host=gdrive&id=1SJ73GGUbECKSKo0crIGjFRG8opz0lzK&ahost=youtube&aid=qGCg15vg8ls&poster=https%3A%2F%2Fvidhost.net%2Fposter.jpg&sub%5B%5D=https%3A%2F%2Fvidhost.net%2Fen.srt&sub%5B%5D=https%3A%2F%2Fvidhost.net%2Fid.srt&lang%5B%5D=English&lang%5B%5D=Indonesian")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()