<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://vidhost.net/api/",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "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_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_POST);

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

$request->setContentType('application/x-www-form-urlencoded');
$request->setPostFields(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'
  )
));

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

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

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

$body = new http\Message\Body;
$body->append(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->setRequestUrl('https://vidhost.net/api/');
$request->setRequestMethod('POST');
$request->setBody($body);

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

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

echo $response->getBody();
POST /api/ HTTP/1.1
Authorization: Basic YWRtaW46RjFyM2I0TGw=
Host: vidhost.net
Content-Length: 254

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 settings = {
  "async": true,
  "crossDomain": true,
  "url": "https://vidhost.net/api/",
  "method": "POST",
  "headers": {
    "authorization": "Basic YWRtaW46RjFyM2I0TGw="
  },
  "data": {
    "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"
    ]
  }
}

$.ajax(settings).done(function (response) {
  console.log(response);
});
fetch("https://vidhost.net/api/", {
  "method": "POST",
  "headers": {
    "authorization": "Basic YWRtaW46RjFyM2I0TGw="
  },
  "body": {
    "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"
    ]
  }
})
.then(response => {
  console.log(response);
})
.catch(err => {
  console.log(err);
});
var data = "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 xhr = new XMLHttpRequest();
xhr.withCredentials = true;

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

xhr.open("POST", "https://vidhost.net/api/");
xhr.setRequestHeader("authorization", "Basic YWRtaW46RjFyM2I0TGw=");

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

var options = {
  "method": "POST",
  "hostname": "vidhost.net",
  "port": null,
  "path": "/api/",
  "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.write(qs.stringify({
  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.end();
var request = require("request");

var options = {
  method: 'POST',
  url: 'https://vidhost.net/api/',
  headers: {authorization: 'Basic YWRtaW46RjFyM2I0TGw='},
  form: {
    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']
  }
};

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

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

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

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

req.form({
  "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.end(function (res) {
  if (res.error) throw new Error(res.error);

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

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

payload = "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=" }

conn.request("POST", "/api/", payload, headers)

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

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

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

payload = "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='}

response = requests.request("POST", url, data=payload, headers=headers)

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

url = URI("https://vidhost.net/api/")

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

request = Net::HTTP::Post.new(url)
request["authorization"] = 'Basic YWRtaW46RjFyM2I0TGw='
request.body = "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"

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

MediaType mediaType = MediaType.parse("application/x-www-form-urlencoded");
RequestBody body = RequestBody.create(mediaType, "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");
Request request = new Request.Builder()
  .url("https://vidhost.net/api/")
  .post(body)
  .addHeader("authorization", "Basic YWRtaW46RjFyM2I0TGw=")
  .build();

Response response = client.newCall(request).execute();
HttpResponse<String> response = Unirest.post("https://vidhost.net/api/")
  .header("authorization", "Basic YWRtaW46RjFyM2I0TGw=")
  .body("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")
  .asString();
CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "https://vidhost.net/api/");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "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");

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

(client/post "https://vidhost.net/api/" {:headers {:authorization "Basic YWRtaW46RjFyM2I0TGw="}
                                         :form-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/");
var request = new RestRequest(Method.POST);
request.AddHeader("authorization", "Basic YWRtaW46RjFyM2I0TGw=");
request.AddParameter("undefined", "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", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("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("POST", url, payload)

	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=" };

NSMutableData *postData = [[NSMutableData alloc] initWithData:[@"host=gdrive" dataUsingEncoding:NSUTF8StringEncoding]];
[postData appendData:[@"&id=1SJ73GGUbECKSKo0crIGjFRG8opz0lzK" dataUsingEncoding:NSUTF8StringEncoding]];
[postData appendData:[@"&ahost=youtube" dataUsingEncoding:NSUTF8StringEncoding]];
[postData appendData:[@"&aid=qGCg15vg8ls" dataUsingEncoding:NSUTF8StringEncoding]];
[postData appendData:[@"&poster=https://vidhost.net/poster.jpg" dataUsingEncoding:NSUTF8StringEncoding]];
[postData appendData:[@"&sub[]=https://vidhost.net/en.srt" dataUsingEncoding:NSUTF8StringEncoding]];
[postData appendData:[@"&sub[]=https://vidhost.net/id.srt" dataUsingEncoding:NSUTF8StringEncoding]];
[postData appendData:[@"&lang[]=English" dataUsingEncoding:NSUTF8StringEncoding]];
[postData appendData:[@"&lang[]=Indonesian" dataUsingEncoding:NSUTF8StringEncoding]];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"https://vidhost.net/api/"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

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/" in
let headers = Header.add (Header.init ()) "authorization" "Basic YWRtaW46RjFyM2I0TGw=" in
let body = Cohttp_lwt_body.of_string "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

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
$headers=@{}
$headers.Add("authorization", "Basic YWRtaW46RjFyM2I0TGw=")
$response = Invoke-WebRequest -Uri 'https://vidhost.net/api/' -Method POST -Headers $headers -ContentType 'undefined' -Body '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.Add("authorization", "Basic YWRtaW46RjFyM2I0TGw=")
$response = Invoke-RestMethod -Uri 'https://vidhost.net/api/' -Method POST -Headers $headers -ContentType 'undefined' -Body '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'
curl --request POST \
  --url https://vidhost.net/api/ \
  --header 'authorization: Basic YWRtaW46RjFyM2I0TGw=' \
  --data host=gdrive \
  --data id=1SJ73GGUbECKSKo0crIGjFRG8opz0lzK \
  --data ahost=youtube \
  --data aid=qGCg15vg8ls \
  --data poster=https://vidhost.net/poster.jpg \
  --data 'sub[]=https://vidhost.net/en.srt' \
  --data 'sub[]=https://vidhost.net/id.srt' \
  --data 'lang[]=English' \
  --data 'lang[]=Indonesian'
http --form POST https://vidhost.net/api/ \
  authorization:'Basic YWRtaW46RjFyM2I0TGw=' \
  host=gdrive \
  id=1SJ73GGUbECKSKo0crIGjFRG8opz0lzK \
  ahost=youtube \
  aid=qGCg15vg8ls \
  poster=https://vidhost.net/poster.jpg \
  sub[]=https://vidhost.net/en.srt \
  sub[]=https://vidhost.net/id.srt \
  lang[]=English \
  lang[]=Indonesian
wget --quiet \
  --method POST \
  --header 'authorization: Basic YWRtaW46RjFyM2I0TGw=' \
  --body-data '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' \
  --output-document \
  - https://vidhost.net/api/
import Foundation

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

let postData = NSMutableData(data: "host=gdrive".data(using: String.Encoding.utf8)!)
postData.append("&id=1SJ73GGUbECKSKo0crIGjFRG8opz0lzK".data(using: String.Encoding.utf8)!)
postData.append("&ahost=youtube".data(using: String.Encoding.utf8)!)
postData.append("&aid=qGCg15vg8ls".data(using: String.Encoding.utf8)!)
postData.append("&poster=https://vidhost.net/poster.jpg".data(using: String.Encoding.utf8)!)
postData.append("&sub[]=https://vidhost.net/en.srt".data(using: String.Encoding.utf8)!)
postData.append("&sub[]=https://vidhost.net/id.srt".data(using: String.Encoding.utf8)!)
postData.append("&lang[]=English".data(using: String.Encoding.utf8)!)
postData.append("&lang[]=Indonesian".data(using: String.Encoding.utf8)!)

let request = NSMutableURLRequest(url: NSURL(string: "https://vidhost.net/api/")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

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()