Contact for sale : +918886778652
Click here for Testing Click here for Registration
POST /qrcode.php HTTP/1.1 Host: connectwa.accgst.com Content-Type: application/x-www-form-urlencoded Cache-Control: no-cache Postman-Token: 83f7c7c4-e5c3-cd65-b439-663d1adce5d2 apikey=2d1939a06e965882cbf6631de131c472
CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST"); curl_easy_setopt(hnd, CURLOPT_URL, "https://connectwa.accgst.com/qrcode.php"); struct curl_slist *headers = NULL; headers = curl_slist_append(headers, "postman-token: 1cedbcfc-a790-e5e1-dfb0-e267206febbc"); headers = curl_slist_append(headers, "cache-control: no-cache"); headers = curl_slist_append(headers, "content-type: application/x-www-form-urlencoded"); curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers); curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "apikey=2d1939a06e965882cbf6631de131c472"); CURLcode ret = curl_easy_perform(hnd);
curl -X POST \ https://connectwa.accgst.com/qrcode.php \ -H 'cache-control: no-cache' \ -H 'content-type: application/x-www-form-urlencoded' \ -H 'postman-token: 195c92a8-f7e9-b3cd-5321-8aa1420a9b9d' \ -d apikey=2d1939a06e965882cbf6631de131c472
var client = new RestClient("https://connectwa.accgst.com/qrcode.php");
var request = new RestRequest(Method.POST);
request.AddHeader("postman-token", "263e5bc2-447f-9bd9-e71a-bec110303b23");
request.AddHeader("cache-control", "no-cache");
request.AddHeader("content-type", "application/x-www-form-urlencoded");
request.AddParameter("application/x-www-form-urlencoded", "apikey=2d1939a06e965882cbf6631de131c472", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
)
func main() {
url := "https://connectwa.accgst.com/qrcode.php"
payload := strings.NewReader("apikey=2d1939a06e965882cbf6631de131c472")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/x-www-form-urlencoded")
req.Header.Add("cache-control", "no-cache")
req.Header.Add("postman-token", "6098f89f-4809-7f1d-49b7-de8701dbbd8e")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/x-www-form-urlencoded");
RequestBody body = RequestBody.create(mediaType, "apikey=2d1939a06e965882cbf6631de131c472");
Request request = new Request.Builder()
.url("https://connectwa.accgst.com/qrcode.php")
.post(body)
.addHeader("content-type", "application/x-www-form-urlencoded")
.addHeader("cache-control", "no-cache")
.addHeader("postman-token", "cac66971-6f5f-06e0-0f95-816f001f22e6")
.build();
Response response = client.newCall(request).execute();
HttpResponseresponse = Unirest.post("https://connectwa.accgst.com/qrcode.php") .header("content-type", "application/x-www-form-urlencoded") .header("cache-control", "no-cache") .header("postman-token", "d2db19e5-d9ad-f887-f869-365bb8ae1eb5") .body("apikey=2d1939a06e965882cbf6631de131c472") .asString();
var settings = {
"async": true,
"crossDomain": true,
"url": "https://connectwa.accgst.com/qrcode.php",
"method": "POST",
"headers": {
"content-type": "application/x-www-form-urlencoded",
"cache-control": "no-cache",
"postman-token": "82b9c0e4-21b1-f65c-1986-e404b06b9c07"
},
"data": {
"apikey": "2d1939a06e965882cbf6631de131c472"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
var data = "apikey=2d1939a06e965882cbf6631de131c472";
var xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener("readystatechange", function () {
if (this.readyState === 4) {
console.log(this.responseText);
}
});
xhr.open("POST", "https://connectwa.accgst.com/qrcode.php");
xhr.setRequestHeader("content-type", "application/x-www-form-urlencoded");
xhr.setRequestHeader("cache-control", "no-cache");
xhr.setRequestHeader("postman-token", "81bdbee0-66d3-54ba-cf20-06f8a552d5fe");
xhr.send(data);
var qs = require("querystring");
var http = require("http");
var options = {
"method": "POST",
"hostname": "connectwa.accgst.com",
"port": null,
"path": "/qrcode.php",
"headers": {
"content-type": "application/x-www-form-urlencoded",
"cache-control": "no-cache",
"postman-token": "657c6fbe-0987-7a19-5813-61b93b2cc675"
}
};
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({ apikey: '2d1939a06e965882cbf6631de131c472' }));
req.end();
var request = require("request");
var options = { method: 'POST',
url: 'https://connectwa.accgst.com/qrcode.php',
headers:
{ 'postman-token': '9ead4216-5468-dbec-1998-b4b8fb4ca19c',
'cache-control': 'no-cache',
'content-type': 'application/x-www-form-urlencoded' },
form: { apikey: '2d1939a06e965882cbf6631de131c472' } };
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
var unirest = require("unirest");
var req = unirest("POST", "https://connectwa.accgst.com/qrcode.php");
req.headers({
"postman-token": "8dda13a2-2298-e303-e75d-55514ccd795d",
"cache-control": "no-cache",
"content-type": "application/x-www-form-urlencoded"
});
req.form({
"apikey": "2d1939a06e965882cbf6631de131c472"
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
#importNSDictionary *headers = @{ @"content-type": @"application/x-www-form-urlencoded", @"cache-control": @"no-cache", @"postman-token": @"295a068c-d6af-3939-546e-3126e9640e09" }; NSMutableData *postData = [[NSMutableData alloc] initWithData:[@"apikey=2d1939a06e965882cbf6631de131c472" dataUsingEncoding:NSUTF8StringEncoding]]; NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"https://connectwa.accgst.com/qrcode.php"] 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://connectwa.accgst.com/qrcode.php" in let headers = Header.init () |> fun h -> Header.add h "content-type" "application/x-www-form-urlencoded" |> fun h -> Header.add h "cache-control" "no-cache" |> fun h -> Header.add h "postman-token" "5abd1928-3da7-1040-93e3-d700c4a69b18" in let body = Cohttp_lwt_body.of_string "apikey=2d1939a06e965882cbf6631de131c472" in Client.call ~headers ~body `POST uri >>= fun (res, body_stream) -> (* Do stuff with the result *)
$request = new HttpRequest();
$request->setUrl('https://connectwa.accgst.com/qrcode.php');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders(array(
'postman-token' => 'f2133aaa-e881-c30b-e513-0e404689d2a5',
'cache-control' => 'no-cache',
'content-type' => 'application/x-www-form-urlencoded'
));
$request->setContentType('application/x-www-form-urlencoded');
$request->setPostFields(array(
'apikey' => '2d1939a06e965882cbf6631de131c472'
));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
$client = new http\Client;
$request = new http\Client\Request;
$body = new http\Message\Body;
$body->append(new http\QueryString(array(
'apikey' => '2d1939a06e965882cbf6631de131c472'
)));
$request->setRequestUrl('https://connectwa.accgst.com/qrcode.php');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders(array(
'postman-token' => 'ccaf03bf-6b43-20b9-660e-ab7b4cc5ab51',
'cache-control' => 'no-cache',
'content-type' => 'application/x-www-form-urlencoded'
));
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://connectwa.accgst.com/qrcode.php",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "apikey=2d1939a06e965882cbf6631de131c472",
CURLOPT_HTTPHEADER => array(
"cache-control: no-cache",
"content-type: application/x-www-form-urlencoded",
"postman-token: ea5e7c96-3e4d-dc08-db9b-b9666c5d6c95"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
import http.client
conn = http.client.HTTPConnection("connectwa.accgst.com")
payload = "apikey=2d1939a06e965882cbf6631de131c472"
headers = {
'content-type': "application/x-www-form-urlencoded",
'cache-control': "no-cache",
'postman-token': "5175d3f1-12f5-a07b-2298-3ffaea39c756"
}
conn.request("POST", "/qrcode.php", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "https://connectwa.accgst.com/qrcode.php"
payload = "apikey=2d1939a06e965882cbf6631de131c472"
headers = {
'content-type': "application/x-www-form-urlencoded",
'cache-control': "no-cache",
'postman-token': "febb2abf-86f8-9fd5-2096-0989facc1517"
}
response = requests.request("POST", url, data=payload, headers=headers)
print(response.text)
require 'uri'
require 'net/http'
url = URI("https://connectwa.accgst.com/qrcode.php")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/x-www-form-urlencoded'
request["cache-control"] = 'no-cache'
request["postman-token"] = '2dc0eddc-e6a6-0f12-9129-6a5516657d91'
request.body = "apikey=2d1939a06e965882cbf6631de131c472"
response = http.request(request)
puts response.read_body
wget --quiet \ --method POST \ --header 'content-type: application/x-www-form-urlencoded' \ --header 'cache-control: no-cache' \ --header 'postman-token: 7960fb3f-f47f-c3ab-47be-d9a3228f1fd5' \ --body-data apikey=2d1939a06e965882cbf6631de131c472 \ --output-document \ - https://connectwa.accgst.com/qrcode.php
http --form POST https://connectwa.accgst.com/qrcode.php \ cache-control:no-cache \ content-type:application/x-www-form-urlencoded \ postman-token:57a3db87-552c-2305-f098-d41762dda8ec \ apikey=2d1939a06e965882cbf6631de131c472
curl --request POST \ --url https://connectwa.accgst.com/qrcode.php \ --header 'cache-control: no-cache' \ --header 'content-type: application/x-www-form-urlencoded' \ --header 'postman-token: cfb6b955-8c38-da6a-5d29-c4d4d3ea4e83' \ --data apikey=2d1939a06e965882cbf6631de131c472
import Foundation
let headers = [
"content-type": "application/x-www-form-urlencoded",
"cache-control": "no-cache",
"postman-token": "49c82a0a-bd0e-dd3a-0b24-b2976a8cd904"
]
let postData = NSMutableData(data: "apikey=2d1939a06e965882cbf6631de131c472".data(using: String.Encoding.utf8)!)
let request = NSMutableURLRequest(url: NSURL(string: "https://connectwa.accgst.com/qrcode.php")! 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()
POST /verifytoken.php HTTP/1.1 Host: connectwa.accgst.com/ Content-Type: application/x-www-form-urlencoded Cache-Control: no-cache Postman-Token: fdfe0dfa-b5d9-aa55-7378-f934ea0ef0d7 apikey=2d1939a06e965882cbf6631de131c472&token=86be818a-5e44-4a6e-a724-17a5908795fc
CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST"); curl_easy_setopt(hnd, CURLOPT_URL, "https://connectwa.accgst.com/verifytoken.php"); struct curl_slist *headers = NULL; headers = curl_slist_append(headers, "postman-token: 13bcdc90-6774-402a-0e15-504264cb4ba2"); headers = curl_slist_append(headers, "cache-control: no-cache"); headers = curl_slist_append(headers, "content-type: application/x-www-form-urlencoded"); curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers); curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "apikey=2d1939a06e965882cbf6631de131c472&token=86be818a-5e44-4a6e-a724-17a5908795fc"); CURLcode ret = curl_easy_perform(hnd);
curl -X POST \ https://connectwa.accgst.com/verifytoken.php \ -H 'cache-control: no-cache' \ -H 'content-type: application/x-www-form-urlencoded' \ -H 'postman-token: 149afa8e-a474-d336-166a-47bbf19b5db6' \ -d 'apikey=2d1939a06e965882cbf6631de131c472&token=86be818a-5e44-4a6e-a724-17a5908795fc'
var client = new RestClient("https://connectwa.accgst.com/verifytoken.php");
var request = new RestRequest(Method.POST);
request.AddHeader("postman-token", "da8be223-88bd-3703-d779-d3c5034d639c");
request.AddHeader("cache-control", "no-cache");
request.AddHeader("content-type", "application/x-www-form-urlencoded");
request.AddParameter("application/x-www-form-urlencoded", "apikey=2d1939a06e965882cbf6631de131c472&token=86be818a-5e44-4a6e-a724-17a5908795fc", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
)
func main() {
url := "https://connectwa.accgst.com/verifytoken.php"
payload := strings.NewReader("apikey=2d1939a06e965882cbf6631de131c472&token=86be818a-5e44-4a6e-a724-17a5908795fc")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/x-www-form-urlencoded")
req.Header.Add("cache-control", "no-cache")
req.Header.Add("postman-token", "09886c18-65d6-2469-9f62-934a051b60c8")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/x-www-form-urlencoded");
RequestBody body = RequestBody.create(mediaType, "apikey=2d1939a06e965882cbf6631de131c472&token=86be818a-5e44-4a6e-a724-17a5908795fc");
Request request = new Request.Builder()
.url("https://connectwa.accgst.com/verifytoken.php")
.post(body)
.addHeader("content-type", "application/x-www-form-urlencoded")
.addHeader("cache-control", "no-cache")
.addHeader("postman-token", "05dbc410-6232-ca42-f472-89f4aec3d49d")
.build();
Response response = client.newCall(request).execute();
HttpResponseresponse = Unirest.post("https://connectwa.accgst.com/verifytoken.php") .header("content-type", "application/x-www-form-urlencoded") .header("cache-control", "no-cache") .header("postman-token", "94051a18-4116-b0e8-fa32-e3584775c24f") .body("apikey=2d1939a06e965882cbf6631de131c472&token=86be818a-5e44-4a6e-a724-17a5908795fc") .asString();
var qs = require("querystring");
var http = require("http");
var options = {
"method": "POST",
"hostname": "connectwa.accgst.com",
"port": null,
"path": "/verifytoken.php",
"headers": {
"content-type": "application/x-www-form-urlencoded",
"cache-control": "no-cache",
"postman-token": "7f39d247-2090-f4a6-e066-5b21ce501a1e"
}
};
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({ apikey: '2d1939a06e965882cbf6631de131c472',
token: '86be818a-5e44-4a6e-a724-17a5908795fc' }));
req.end();
var data = "apikey=2d1939a06e965882cbf6631de131c472&token=86be818a-5e44-4a6e-a724-17a5908795fc";
var xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener("readystatechange", function () {
if (this.readyState === 4) {
console.log(this.responseText);
}
});
xhr.open("POST", "https://connectwa.accgst.com/verifytoken.php");
xhr.setRequestHeader("content-type", "application/x-www-form-urlencoded");
xhr.setRequestHeader("cache-control", "no-cache");
xhr.setRequestHeader("postman-token", "154b7f02-aa3a-279c-b70d-2b7fbbd274f2");
xhr.send(data);
var qs = require("querystring");
var http = require("http");
var options = {
"method": "POST",
"hostname": "connectwa.accgst.com",
"port": null,
"path": "/verifytoken.php",
"headers": {
"content-type": "application/x-www-form-urlencoded",
"cache-control": "no-cache",
"postman-token": "54c1098e-1aa7-1ee9-d010-06a2539c424c"
}
};
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({ apikey: '2d1939a06e965882cbf6631de131c472',
token: '86be818a-5e44-4a6e-a724-17a5908795fc' }));
req.end();
var request = require("request");
var options = { method: 'POST',
url: 'https://connectwa.accgst.com/verifytoken.php',
headers:
{ 'postman-token': '6358e288-1746-d842-9b85-a448ad908c1e',
'cache-control': 'no-cache',
'content-type': 'application/x-www-form-urlencoded' },
form:
{ apikey: '2d1939a06e965882cbf6631de131c472',
token: '86be818a-5e44-4a6e-a724-17a5908795fc' } };
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
var unirest = require("unirest");
var req = unirest("POST", "https://connectwa.accgst.com/verifytoken.php");
req.headers({
"postman-token": "301d2629-a462-fb5e-956e-ac9849bb2860",
"cache-control": "no-cache",
"content-type": "application/x-www-form-urlencoded"
});
req.form({
"apikey": "2d1939a06e965882cbf6631de131c472",
"token": "86be818a-5e44-4a6e-a724-17a5908795fc"
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
#importNSDictionary *headers = @{ @"content-type": @"application/x-www-form-urlencoded", @"cache-control": @"no-cache", @"postman-token": @"c3a4d6db-8a9a-25db-89a6-eca05d499d92" }; NSMutableData *postData = [[NSMutableData alloc] initWithData:[@"apikey=2d1939a06e965882cbf6631de131c472" dataUsingEncoding:NSUTF8StringEncoding]]; [postData appendData:[@"&token=86be818a-5e44-4a6e-a724-17a5908795fc" dataUsingEncoding:NSUTF8StringEncoding]]; NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"https://connectwa.accgst.com/verifytoken.php"] 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://connectwa.accgst.com/verifytoken.php" in let headers = Header.init () |> fun h -> Header.add h "content-type" "application/x-www-form-urlencoded" |> fun h -> Header.add h "cache-control" "no-cache" |> fun h -> Header.add h "postman-token" "57993474-c5f2-437f-c4d1-a89c4ccf0ef8" in let body = Cohttp_lwt_body.of_string "apikey=2d1939a06e965882cbf6631de131c472&token=86be818a-5e44-4a6e-a724-17a5908795fc" in Client.call ~headers ~body `POST uri >>= fun (res, body_stream) -> (* Do stuff with the result *)
$request = new HttpRequest();
$request->setUrl('https://connectwa.accgst.com/verifytoken.php');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders(array(
'postman-token' => '69e9fa38-5848-fa8b-81c4-3afc85e7dfeb',
'cache-control' => 'no-cache',
'content-type' => 'application/x-www-form-urlencoded'
));
$request->setContentType('application/x-www-form-urlencoded');
$request->setPostFields(array(
'apikey' => '2d1939a06e965882cbf6631de131c472',
'token' => '86be818a-5e44-4a6e-a724-17a5908795fc'
));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
$client = new http\Client;
$request = new http\Client\Request;
$body = new http\Message\Body;
$body->append(new http\QueryString(array(
'apikey' => '2d1939a06e965882cbf6631de131c472',
'token' => '86be818a-5e44-4a6e-a724-17a5908795fc'
)));
$request->setRequestUrl('https://connectwa.accgst.com/verifytoken.php');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders(array(
'postman-token' => '8a27321e-6cb2-b783-671f-4765fc5707b9',
'cache-control' => 'no-cache',
'content-type' => 'application/x-www-form-urlencoded'
));
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://connectwa.accgst.com/verifytoken.php",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "apikey=2d1939a06e965882cbf6631de131c472&token=86be818a-5e44-4a6e-a724-17a5908795fc",
CURLOPT_HTTPHEADER => array(
"cache-control: no-cache",
"content-type: application/x-www-form-urlencoded",
"postman-token: 7ed4f3f6-34b3-d0ce-76f6-eaa91ac1919e"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
import http.client
conn = http.client.HTTPConnection("connectwa.accgst.com")
payload = "apikey=2d1939a06e965882cbf6631de131c472&token=86be818a-5e44-4a6e-a724-17a5908795fc"
headers = {
'content-type': "application/x-www-form-urlencoded",
'cache-control': "no-cache",
'postman-token': "61c8b1e6-c374-a838-9181-8626d4b78dea"
}
conn.request("POST", "/verifytoken.php", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "https://connectwa.accgst.com/verifytoken.php"
payload = "apikey=2d1939a06e965882cbf6631de131c472&token=86be818a-5e44-4a6e-a724-17a5908795fc"
headers = {
'content-type': "application/x-www-form-urlencoded",
'cache-control': "no-cache",
'postman-token': "f0845e52-f97f-65e0-b3d2-5214e2648cdb"
}
response = requests.request("POST", url, data=payload, headers=headers)
print(response.text)
require 'uri'
require 'net/http'
url = URI("https://connectwa.accgst.com/verifytoken.php")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/x-www-form-urlencoded'
request["cache-control"] = 'no-cache'
request["postman-token"] = '5c48cd63-a553-6e96-f4df-d192113bf018'
request.body = "apikey=2d1939a06e965882cbf6631de131c472&token=86be818a-5e44-4a6e-a724-17a5908795fc"
response = http.request(request)
puts response.read_body
wget --quiet \ --method POST \ --header 'content-type: application/x-www-form-urlencoded' \ --header 'cache-control: no-cache' \ --header 'postman-token: a994b3a9-0ed5-ec57-69cf-55896746ee31' \ --body-data 'apikey=2d1939a06e965882cbf6631de131c472&token=86be818a-5e44-4a6e-a724-17a5908795fc' \ --output-document \ - https://connectwa.accgst.com/verifytoken.php
http --form POST https://connectwa.accgst.com/verifytoken.php \ cache-control:no-cache \ content-type:application/x-www-form-urlencoded \ postman-token:c1e843c3-c630-7de0-404e-1ba274969caa \ apikey=2d1939a06e965882cbf6631de131c472 \ token=86be818a-5e44-4a6e-a724-17a5908795fc
curl --request POST \ --url https://connectwa.accgst.com/verifytoken.php \ --header 'cache-control: no-cache' \ --header 'content-type: application/x-www-form-urlencoded' \ --header 'postman-token: b4c13a8d-57ac-6666-94e5-17c98a290166' \ --data 'apikey=2d1939a06e965882cbf6631de131c472&token=86be818a-5e44-4a6e-a724-17a5908795fc'
import Foundation
let headers = [
"content-type": "application/x-www-form-urlencoded",
"cache-control": "no-cache",
"postman-token": "ffd79771-d846-416d-5123-655074cfdfec"
]
let postData = NSMutableData(data: "apikey=2d1939a06e965882cbf6631de131c472".data(using: String.Encoding.utf8)!)
postData.append("&token=86be818a-5e44-4a6e-a724-17a5908795fc".data(using: String.Encoding.utf8)!)
let request = NSMutableURLRequest(url: NSURL(string: "https://connectwa.accgst.com/verifytoken.php")! 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()
POST /checkapistatus.php HTTP/1.1 Host: connectwa.accgst.com/ Content-Type: application/x-www-form-urlencoded Cache-Control: no-cache Postman-Token: fdfe0dfa-b5d9-aa55-7378-f934ea0ef0d7 apikey=2d1939a06e965882cbf6631de131c472
CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST"); curl_easy_setopt(hnd, CURLOPT_URL, "https://connectwa.accgst.com/checkapistatus.php"); struct curl_slist *headers = NULL; headers = curl_slist_append(headers, "postman-token: 13bcdc90-6774-402a-0e15-504264cb4ba2"); headers = curl_slist_append(headers, "cache-control: no-cache"); headers = curl_slist_append(headers, "content-type: application/x-www-form-urlencoded"); curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers); curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "apikey=2d1939a06e965882cbf6631de131c472"); CURLcode ret = curl_easy_perform(hnd);
curl -X POST \ https://connectwa.accgst.com/checkapistatus.php \ -H 'cache-control: no-cache' \ -H 'content-type: application/x-www-form-urlencoded' \ -H 'postman-token: 149afa8e-a474-d336-166a-47bbf19b5db6' \ -d 'apikey=2d1939a06e965882cbf6631de131c472'
var client = new RestClient("https://connectwa.accgst.com/checkapistatus.php");
var request = new RestRequest(Method.POST);
request.AddHeader("postman-token", "da8be223-88bd-3703-d779-d3c5034d639c");
request.AddHeader("cache-control", "no-cache");
request.AddHeader("content-type", "application/x-www-form-urlencoded");
request.AddParameter("application/x-www-form-urlencoded", "apikey=2d1939a06e965882cbf6631de131c472", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
)
func main() {
url := "https://connectwa.accgst.com/checkapistatus.php"
payload := strings.NewReader("apikey=2d1939a06e965882cbf6631de131c472")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/x-www-form-urlencoded")
req.Header.Add("cache-control", "no-cache")
req.Header.Add("postman-token", "09886c18-65d6-2469-9f62-934a051b60c8")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/x-www-form-urlencoded");
RequestBody body = RequestBody.create(mediaType, "apikey=2d1939a06e965882cbf6631de131c472");
Request request = new Request.Builder()
.url("https://connectwa.accgst.com/checkapistatus.php")
.post(body)
.addHeader("content-type", "application/x-www-form-urlencoded")
.addHeader("cache-control", "no-cache")
.addHeader("postman-token", "05dbc410-6232-ca42-f472-89f4aec3d49d")
.build();
Response response = client.newCall(request).execute();
HttpResponseresponse = Unirest.post("https://connectwa.accgst.com/checkapistatus.php") .header("content-type", "application/x-www-form-urlencoded") .header("cache-control", "no-cache") .header("postman-token", "94051a18-4116-b0e8-fa32-e3584775c24f") .body("apikey=2d1939a06e965882cbf6631de131c472") .asString();
var qs = require("querystring");
var http = require("http");
var options = {
"method": "POST",
"hostname": "connectwa.accgst.com",
"port": null,
"path": "/checkapistatus.php",
"headers": {
"content-type": "application/x-www-form-urlencoded",
"cache-control": "no-cache",
"postman-token": "7f39d247-2090-f4a6-e066-5b21ce501a1e"
}
};
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({ apikey: '2d1939a06e965882cbf6631de131c472'}));
req.end();
var data = "apikey=2d1939a06e965882cbf6631de131c472";
var xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener("readystatechange", function () {
if (this.readyState === 4) {
console.log(this.responseText);
}
});
xhr.open("POST", "https://connectwa.accgst.com/checkapistatus.php");
xhr.setRequestHeader("content-type", "application/x-www-form-urlencoded");
xhr.setRequestHeader("cache-control", "no-cache");
xhr.setRequestHeader("postman-token", "154b7f02-aa3a-279c-b70d-2b7fbbd274f2");
xhr.send(data);
var qs = require("querystring");
var http = require("http");
var options = {
"method": "POST",
"hostname": "connectwa.accgst.com",
"port": null,
"path": "/checkapistatus.php",
"headers": {
"content-type": "application/x-www-form-urlencoded",
"cache-control": "no-cache",
"postman-token": "54c1098e-1aa7-1ee9-d010-06a2539c424c"
}
};
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({ apikey: '2d1939a06e965882cbf6631de131c472' }));
req.end();
var request = require("request");
var options = { method: 'POST',
url: 'https://connectwa.accgst.com/checkapistatus.php',
headers:
{ 'postman-token': '6358e288-1746-d842-9b85-a448ad908c1e',
'cache-control': 'no-cache',
'content-type': 'application/x-www-form-urlencoded' },
form:
{ apikey: '2d1939a06e965882cbf6631de131c472' } };
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
var unirest = require("unirest");
var req = unirest("POST", "https://connectwa.accgst.com/checkapistatus.php");
req.headers({
"postman-token": "301d2629-a462-fb5e-956e-ac9849bb2860",
"cache-control": "no-cache",
"content-type": "application/x-www-form-urlencoded"
});
req.form({
"apikey": "2d1939a06e965882cbf6631de131c472"
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
#importNSDictionary *headers = @{ @"content-type": @"application/x-www-form-urlencoded", @"cache-control": @"no-cache", @"postman-token": @"c3a4d6db-8a9a-25db-89a6-eca05d499d92" }; NSMutableData *postData = [[NSMutableData alloc] initWithData:[@"apikey=2d1939a06e965882cbf6631de131c472" dataUsingEncoding:NSUTF8StringEncoding]]; NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"https://connectwa.accgst.com/checkapistatus.php"] 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://connectwa.accgst.com/checkapistatus.php" in let headers = Header.init () |> fun h -> Header.add h "content-type" "application/x-www-form-urlencoded" |> fun h -> Header.add h "cache-control" "no-cache" |> fun h -> Header.add h "postman-token" "57993474-c5f2-437f-c4d1-a89c4ccf0ef8" in let body = Cohttp_lwt_body.of_string "apikey=2d1939a06e965882cbf6631de131c472" in Client.call ~headers ~body `POST uri >>= fun (res, body_stream) -> (* Do stuff with the result *)
$request = new HttpRequest();
$request->setUrl('https://connectwa.accgst.com/checkapistatus.php');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders(array(
'postman-token' => '69e9fa38-5848-fa8b-81c4-3afc85e7dfeb',
'cache-control' => 'no-cache',
'content-type' => 'application/x-www-form-urlencoded'
));
$request->setContentType('application/x-www-form-urlencoded');
$request->setPostFields(array(
'apikey' => '2d1939a06e965882cbf6631de131c472',
));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
$client = new http\Client;
$request = new http\Client\Request;
$body = new http\Message\Body;
$body->append(new http\QueryString(array(
'apikey' => '2d1939a06e965882cbf6631de131c472',
)));
$request->setRequestUrl('https://connectwa.accgst.com/checkapistatus.php');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders(array(
'postman-token' => '8a27321e-6cb2-b783-671f-4765fc5707b9',
'cache-control' => 'no-cache',
'content-type' => 'application/x-www-form-urlencoded'
));
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://connectwa.accgst.com/checkapistatus.php",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "apikey=2d1939a06e965882cbf6631de131c472",
CURLOPT_HTTPHEADER => array(
"cache-control: no-cache",
"content-type: application/x-www-form-urlencoded",
"postman-token: 7ed4f3f6-34b3-d0ce-76f6-eaa91ac1919e"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
import http.client
conn = http.client.HTTPConnection("connectwa.accgst.com")
payload = "apikey=2d1939a06e965882cbf6631de131c472"
headers = {
'content-type': "application/x-www-form-urlencoded",
'cache-control': "no-cache",
'postman-token': "61c8b1e6-c374-a838-9181-8626d4b78dea"
}
conn.request("POST", "/checkapistatus.php", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "https://connectwa.accgst.com/checkapistatus.php"
payload = "apikey=2d1939a06e965882cbf6631de131c472"
headers = {
'content-type': "application/x-www-form-urlencoded",
'cache-control': "no-cache",
'postman-token': "f0845e52-f97f-65e0-b3d2-5214e2648cdb"
}
response = requests.request("POST", url, data=payload, headers=headers)
print(response.text)
require 'uri'
require 'net/http'
url = URI("https://connectwa.accgst.com/checkapistatus.php")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/x-www-form-urlencoded'
request["cache-control"] = 'no-cache'
request["postman-token"] = '5c48cd63-a553-6e96-f4df-d192113bf018'
request.body = "apikey=2d1939a06e965882cbf6631de131c472"
response = http.request(request)
puts response.read_body
wget --quiet \ --method POST \ --header 'content-type: application/x-www-form-urlencoded' \ --header 'cache-control: no-cache' \ --header 'postman-token: a994b3a9-0ed5-ec57-69cf-55896746ee31' \ --body-data 'apikey=2d1939a06e965882cbf6631de131c472' \ --output-document \ - https://connectwa.accgst.com/checkapistatus.php
http --form POST https://connectwa.accgst.com/checkapistatus.php \ cache-control:no-cache \ content-type:application/x-www-form-urlencoded \ postman-token:c1e843c3-c630-7de0-404e-1ba274969caa \ apikey=2d1939a06e965882cbf6631de131c472
curl --request POST \ --url https://connectwa.accgst.com/checkapistatus.php \ --header 'cache-control: no-cache' \ --header 'content-type: application/x-www-form-urlencoded' \ --header 'postman-token: b4c13a8d-57ac-6666-94e5-17c98a290166' \ --data 'apikey=2d1939a06e965882cbf6631de131c472'
import Foundation
let headers = [
"content-type": "application/x-www-form-urlencoded",
"cache-control": "no-cache",
"postman-token": "ffd79771-d846-416d-5123-655074cfdfec"
]
let postData = NSMutableData(data: "apikey=2d1939a06e965882cbf6631de131c472".data(using: String.Encoding.utf8)!)
let request = NSMutableURLRequest(url: NSURL(string: "https://connectwa.accgst.com/checkapistatus.php")! 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()
GET /messageget.php?apikey=2d1939a06e965882cbf6631de131c472&msg=hello 3&numbers=918886778652,919303085557 HTTP/1.1 Host: connectwa.accgst.com
CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(curl, CURLOPT_URL, "https://connectwa.accgst.com/messageget.php?apikey=2d1939a06e965882cbf6631de131c472&msg=hello%203&numbers=918886778652,919303085557");
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https");
struct curl_slist *headers = NULL;
curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
const char *data = "";
curl_easy_setopt(curl, CURLOPT_POSTFIELDS, data);
res = curl_easy_perform(curl);
}
curl_easy_cleanup(curl);
curl --location 'https://connectwa.accgst.com/messageget.php?apikey=2d1939a06e965882cbf6631de131c472&msg=hello%203&numbers=918886778652,919303085557'
var options = new RestClientOptions("https://connectwa.accgst.com")
{
MaxTimeout = -1,
};
var client = new RestClient(options);
var request = new RestRequest("/messageget.php?apikey=2d1939a06e965882cbf6631de131c472&msg=hello 3&numbers=918886778652,919303085557", Method.Get);
RestResponse response = await client.ExecuteAsync(request);
Console.WriteLine(response.Content);
package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
)
func main() {
url := "https://connectwa.accgst.com/messageget.php?apikey=2d1939a06e965882cbf6631de131c472&msg=hello%203&numbers=918886778652,919303085557"
method := "GET"
payload := strings.NewReader("")
client := &http.Client {
}
req, err := http.NewRequest(method, url, payload)
if err != nil {
fmt.Println(err)
return
}
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := ioutil.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("text/plain");
RequestBody body = RequestBody.create(mediaType, "");
Request request = new Request.Builder()
.url("https://connectwa.accgst.com/messageget.php?apikey=2d1939a06e965882cbf6631de131c472&msg=hello 3&numbers=918886778652,919303085557")
.method("GET", body)
.build();
Response response = client.newCall(request).execute();
Unirest.setTimeouts(0, 0); HttpResponseresponse = Unirest.get("https://connectwa.accgst.com/messageget.php?apikey=2d1939a06e965882cbf6631de131c472&msg=hello%203&numbers=918886778652,919303085557") .asString();
var settings = {
"url": "https://connectwa.accgst.com/messageget.php?apikey=2d1939a06e965882cbf6631de131c472&msg=hello 3&numbers=918886778652,919303085557",
"method": "GET",
"timeout": 0,
};
$.ajax(settings).done(function (response) {
console.log(response);
});
// WARNING: For GET requests, body is set to null by browsers.
var data = "";
var xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener("readystatechange", function() {
if(this.readyState === 4) {
console.log(this.responseText);
}
});
xhr.open("GET", "https://connectwa.accgst.com/messageget.php?apikey=2d1939a06e965882cbf6631de131c472&msg=hello%203&numbers=918886778652,919303085557");
xhr.send(data);
var https = require('follow-redirects').https;
var fs = require('fs');
var qs = require('querystring');
var options = {
'method': 'GET',
'hostname': 'connectwa.accgst.com',
'path': '/messageget.php?apikey=2d1939a06e965882cbf6631de131c472&msg=hello%203&numbers=918886778652,919303085557',
'headers': {
},
'maxRedirects': 20
};
var req = https.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = qs.stringify({
});
req.write(postData);
req.end();
var request = require('request');
var options = {
'method': 'GET',
'url': 'https://connectwa.accgst.com/messageget.php?apikey=2d1939a06e965882cbf6631de131c472&msg=hello 3&numbers=918886778652,919303085557',
'headers': {
},
form: {
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
var unirest = require('unirest');
var req = unirest('GET', 'https://connectwa.accgst.com/messageget.php?apikey=2d1939a06e965882cbf6631de131c472&msg=hello 3&numbers=918886778652,919303085557')
.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.raw_body);
});
#importdispatch_semaphore_t sema = dispatch_semaphore_create(0); NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"https://connectwa.accgst.com/messageget.php?apikey=2d1939a06e965882cbf6631de131c472&msg=hello%203&numbers=918886778652,919303085557"] cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:10.0]; [request setHTTPBody:postData]; [request setHTTPMethod:@"GET"]; NSURLSession *session = [NSURLSession sharedSession]; NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) { if (error) { NSLog(@"%@", error); dispatch_semaphore_signal(sema); } else { NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response; NSError *parseError = nil; NSDictionary *responseDictionary = [NSJSONSerialization JSONObjectWithData:data options:0 error:&parseError]; NSLog(@"%@",responseDictionary); dispatch_semaphore_signal(sema); } }]; [dataTask resume]; dispatch_semaphore_wait(sema, DISPATCH_TIME_FOREVER);
open Lwt open Cohttp open Cohttp_lwt_unix let reqBody = let uri = Uri.of_string "https://connectwa.accgst.com/messageget.php?apikey=2d1939a06e965882cbf6631de131c472&msg=hello%203&numbers=918886778652,919303085557" in Client.call `GET uri >>= fun (_resp, body) -> body |> Cohttp_lwt.Body.to_string >|= fun body -> body let () = let respBody = Lwt_main.run reqBody in print_endline (respBody)
require_once 'HTTP/Request2.php';
$request = new HTTP_Request2();
$request->setUrl('https://connectwa.accgst.com/messageget.php?apikey=2d1939a06e965882cbf6631de131c472&msg=hello 3&numbers=918886778652,919303085557');
$request->setMethod(HTTP_Request2::METHOD_GET);
$request->setConfig(array(
'follow_redirects' => TRUE
));
try {
$response = $request->send();
if ($response->getStatus() == 200) {
echo $response->getBody();
}
else {
echo 'Unexpected HTTP status: ' . $response->getStatus() . ' ' .
$response->getReasonPhrase();
}
}
catch(HTTP_Request2_Exception $e) {
echo 'Error: ' . $e->getMessage();
}
$client = new http\Client;
$request = new http\Client\Request;
$request->setRequestUrl('https://connectwa.accgst.com/messageget.php?apikey=2d1939a06e965882cbf6631de131c472&msg=hello 3&numbers=918886778652,919303085557');
$request->setRequestMethod('GET');
$body = new http\Message\Body;
$request->setBody($body);
$request->setOptions(array());
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => 'https://connectwa.accgst.com/messageget.php?apikey=2d1939a06e965882cbf6631de131c472&msg=hello%203&numbers=918886778652,919303085557', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'GET', )); $response = curl_exec($curl); curl_close($curl); echo $response;
import http.client
conn = http.client.HTTPSConnection("connectwa.accgst.com")
payload = ''
headers = {}
conn.request("GET", "/messageget.php?apikey=2d1939a06e965882cbf6631de131c472&msg=hello%203&numbers=918886778652,919303085557", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "https://connectwa.accgst.com/messageget.php?apikey=2d1939a06e965882cbf6631de131c472&msg=hello 3&numbers=918886778652,919303085557"
payload = {}
headers = {}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
require "uri"
require "net/http"
url = URI("https://connectwa.accgst.com/messageget.php?apikey=2d1939a06e965882cbf6631de131c472&msg=hello 3&numbers=918886778652,919303085557")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Get.new(url)
response = https.request(request)
puts response.read_body
wget --no-check-certificate --quiet \ --method GET \ --timeout=0 \ --header '' \ 'https://connectwa.accgst.com/messageget.php?apikey=2d1939a06e965882cbf6631de131c472&msg=hello 3&numbers=918886778652,919303085557'
http --ignore-stdin --form --follow --timeout 3600 GET 'https://connectwa.accgst.com/messageget.php?apikey=2d1939a06e965882cbf6631de131c472&msg=hello 3&numbers=918886778652,919303085557' \
var request = URLRequest(url: URL(string: "https://connectwa.accgst.com/messageget.php?apikey=2d1939a06e965882cbf6631de131c472&msg=hello%203&numbers=918886778652,919303085557")!,timeoutInterval: Double.infinity)
request.httpMethod = "GET"
let task = URLSession.shared.dataTask(with: request) { data, response, error in
guard let data = data else {
print(String(describing: error))
return
}
print(String(data: data, encoding: .utf8)!)
}
task.resume()
POST /message.php HTTP/1.1
Host: connectwa.accgst.com/
Content-Type: application/json
Cache-Control: no-cache
Postman-Token: 895fae38-5f56-f7bb-668a-cea0447ef95b
{
"apikey": "2d1939a06e965882cbf6631de131c472",
"msg": "test",
"mediatype": "url/base64",
"medianame": "Ferrari.jpg",
"media": "https://www.topgear.com/sites/default/files/cars-car/image/2020/07/dsc09285.jpg",
"numbers": [
"918886778652","919303085557"
]
}
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "https://connectwa.accgst.com/message.php");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "postman-token: 908de034-1cbb-33b6-9181-713190a3da11");
headers = curl_slist_append(headers, "cache-control: no-cache");
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\"apikey\": \"2d1939a06e965882cbf6631de131c472\",\"msg\": \"test\",\"mediatype\": \"url/base64\",\"medianame\": \"Ferrari.jpg\",\"media\": \"https://www.topgear.com/sites/default/files/cars-car/image/2020/07/dsc09285.jpg\",\"numbers\": [ \"918886778652\",\"919303085557\"]}");
CURLcode ret = curl_easy_perform(hnd);
curl -X POST \
https://connectwa.accgst.com/message.php \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-H 'postman-token: ef6171e4-a47b-6f01-6168-8631103e7ff0' \
-d '{
"apikey": "2d1939a06e965882cbf6631de131c472",
"msg": "test",
"mediatype": "url/base64",
"medianame": "Ferrari.jpg",
"media": "https://www.topgear.com/sites/default/files/cars-car/image/2020/07/dsc09285.jpg",
"numbers": [
"918886778652","919303085557"
]
}'
var client = new RestClient("https://connectwa.accgst.com/message.php");
var request = new RestRequest(Method.POST);
request.AddHeader("postman-token", "ebbecfa0-04f1-2dd6-69f8-252d7207886b");
request.AddHeader("cache-control", "no-cache");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\"apikey\": \"2d1939a06e965882cbf6631de131c472\",\"msg\": \"test\",\"mediatype\": \"url/base64\",\"medianame\": \"Ferrari.jpg\",\"media\": \"https://www.topgear.com/sites/default/files/cars-car/image/2020/07/dsc09285.jpg\",\"numbers\": [ \"918886778652\",\"919303085557\"]}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
)
func main() {
url := "https://connectwa.accgst.com/message.php"
payload := strings.NewReader("{\"apikey\": \"2d1939a06e965882cbf6631de131c472\",\"msg\": \"test\",\"mediatype\": \"url/base64\",\"medianame\": \"Ferrari.jpg\",\"media\": \"https://www.topgear.com/sites/default/files/cars-car/image/2020/07/dsc09285.jpg\",\"numbers\": [ \"918886778652\",\"919303085557\"]}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/json")
req.Header.Add("cache-control", "no-cache")
req.Header.Add("postman-token", "6760f117-76cd-b080-4cd5-f87f97d6bdfe")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"apikey\": \"2d1939a06e965882cbf6631de131c472\",\"msg\": \"test\",\"mediatype\": \"url/base64\",\"medianame\": \"Ferrari.jpg\",\"media\": \"https://www.topgear.com/sites/default/files/cars-car/image/2020/07/dsc09285.jpg\",\"numbers\": [ \"918886778652\",\"919303085557\"]}");
Request request = new Request.Builder()
.url("https://connectwa.accgst.com/message.php")
.post(body)
.addHeader("content-type", "application/json")
.addHeader("cache-control", "no-cache")
.addHeader("postman-token", "77924aa4-596e-3b2a-0526-f5a1a4dc8307")
.build();
Response response = client.newCall(request).execute();
HttpResponseresponse = Unirest.post("https://connectwa.accgst.com/message.php") .header("content-type", "application/json") .header("cache-control", "no-cache") .header("postman-token", "06d239b2-dfa4-7311-8644-1020cdeed162") .body("{\"apikey\": \"2d1939a06e965882cbf6631de131c472\",\"msg\": \"test\",\"mediatype\": \"url/base64\",\"medianame\": \"Ferrari.jpg\",\"media\": \"https://www.topgear.com/sites/default/files/cars-car/image/2020/07/dsc09285.jpg\",\"numbers\": [ \"918886778652\",\"919303085557\"]}") .asString();
var settings = {
"async": true,
"crossDomain": true,
"url": "https://connectwa.accgst.com/message.php",
"method": "POST",
"headers": {
"content-type": "application/json",
"cache-control": "no-cache",
"postman-token": "aacdc578-19a3-4c7c-f23a-ac0b31f606d7"
},
"processData": false,
"data": "{\"apikey\": \"2d1939a06e965882cbf6631de131c472\",\"msg\": \"test\",\"mediatype\": \"url/base64\",\"medianame\": \"Ferrari.jpg\",\"media\": \"https://www.topgear.com/sites/default/files/cars-car/image/2020/07/dsc09285.jpg\",\"numbers\": [ \"918886778652\",\"919303085557\"]}"
}
$.ajax(settings).done(function (response) {
console.log(response);
});
var data = JSON.stringify({
"apikey": "2d1939a06e965882cbf6631de131c472",
"msg": "test",
"mediatype": "url/base64",
"medianame": "Ferrari.jpg",
"media": "https://www.topgear.com/sites/default/files/cars-car/image/2020/07/dsc09285.jpg",
"numbers": [
"918886778652",
"919303085557"
]
});
var xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener("readystatechange", function () {
if (this.readyState === 4) {
console.log(this.responseText);
}
});
xhr.open("POST", "https://connectwa.accgst.com/message.php");
xhr.setRequestHeader("content-type", "application/json");
xhr.setRequestHeader("cache-control", "no-cache");
xhr.setRequestHeader("postman-token", "49705358-92dd-f3be-eb3e-9a917897cad6");
xhr.send(data);
var http = require("http");
var options = {
"method": "POST",
"hostname": "connectwa.accgst.com",
"port": null,
"path": "/message.php",
"headers": {
"content-type": "application/json",
"cache-control": "no-cache",
"postman-token": "babbe45c-6667-0b92-0e17-1fdd5f65c044"
}
};
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(JSON.stringify({ apikey: '2d1939a06e965882cbf6631de131c472',
msg: 'test',
mediatype: 'url/base64',
medianame: 'Ferrari.jpg',
media: 'https://www.topgear.com/sites/default/files/cars-car/image/2020/07/dsc09285.jpg',
numbers: [ '918886778652', '919303085557' ] }));
req.end();
var request = require("request");
var options = { method: 'POST',
url: 'https://connectwa.accgst.com/message.php',
headers:
{ 'postman-token': 'ddc8f535-02d7-c620-b992-1843677919c0',
'cache-control': 'no-cache',
'content-type': 'application/json' },
body:
{ apikey: '2d1939a06e965882cbf6631de131c472',
msg: 'test',
mediatype: 'url/base64',
medianame: 'Ferrari.jpg',
media: 'https://www.topgear.com/sites/default/files/cars-car/image/2020/07/dsc09285.jpg',
numbers: [ '918886778652', '919303085557' ] },
json: true };
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
var unirest = require("unirest");
var req = unirest("POST", "https://connectwa.accgst.com/message.php");
req.headers({
"postman-token": "367b0c28-9ccc-2e80-3292-adce37e13f9f",
"cache-control": "no-cache",
"content-type": "application/json"
});
req.type("json");
req.send({
"apikey": "2d1939a06e965882cbf6631de131c472",
"msg": "test",
"mediatype": "url/base64",
"medianame": "Ferrari.jpg",
"media": "https://www.topgear.com/sites/default/files/cars-car/image/2020/07/dsc09285.jpg",
"numbers": [
"918886778652",
"919303085557"
]
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
#importNSDictionary *headers = @{ @"content-type": @"application/json", @"cache-control": @"no-cache", @"postman-token": @"fd16c180-f92c-0a73-58ca-5cd4a7e69de2" }; NSDictionary *parameters = @{ @"apikey": @"2d1939a06e965882cbf6631de131c472", @"msg": @"test", @"mediatype": @"url/base64", @"medianame": @"Ferrari.jpg", @"media": @"https://www.topgear.com/sites/default/files/cars-car/image/2020/07/dsc09285.jpg", @"numbers": @[ @"918886778652", @"919303085557" ] }; NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil]; NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"https://connectwa.accgst.com/message.php"] 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://connectwa.accgst.com/message.php" in
let headers = Header.init ()
|> fun h -> Header.add h "content-type" "application/json"
|> fun h -> Header.add h "cache-control" "no-cache"
|> fun h -> Header.add h "postman-token" "0b381e58-5f0e-f058-14c1-bcb71d7811ac"
in
let body = Cohttp_lwt_body.of_string "{\"apikey\": \"2d1939a06e965882cbf6631de131c472\",\"msg\": \"test\",\"mediatype\": \"url/base64\",\"medianame\": \"Ferrari.jpg\",\"media\": \"https://www.topgear.com/sites/default/files/cars-car/image/2020/07/dsc09285.jpg\",\"numbers\": [ \"918886778652\",\"919303085557\"]}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
$request = new HttpRequest();
$request->setUrl('https://connectwa.accgst.com/message.php');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders(array(
'postman-token' => '21eced51-b5ba-8af9-27e0-fd678b794aa2',
'cache-control' => 'no-cache',
'content-type' => 'application/json'
));
$request->setBody('{
"apikey": "2d1939a06e965882cbf6631de131c472",
"msg": "test",
"mediatype": "url/base64",
"medianame": "Ferrari.jpg",
"media": "https://www.topgear.com/sites/default/files/cars-car/image/2020/07/dsc09285.jpg",
"numbers": [
"918886778652","919303085557"
]
}');
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
$client = new http\Client;
$request = new http\Client\Request;
$body = new http\Message\Body;
$body->append('{
"apikey": "2d1939a06e965882cbf6631de131c472",
"msg": "test",
"mediatype": "url/base64",
"medianame": "Ferrari.jpg",
"media": "https://www.topgear.com/sites/default/files/cars-car/image/2020/07/dsc09285.jpg",
"numbers": [
"918886778652","919303085557"
]
}');
$request->setRequestUrl('https://connectwa.accgst.com/message.php');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders(array(
'postman-token' => 'b837864a-7496-2e03-f006-74bced74abef',
'cache-control' => 'no-cache',
'content-type' => 'application/json'
));
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://connectwa.accgst.com/message.php",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "{ \"apikey\": \"2d1939a06e965882cbf6631de131c472\", \"msg\": \"test\", \"mediatype\": \"url/base64\", \"medianame\": \"Ferrari.jpg\", \"media\": \"https://www.topgear.com/sites/default/files/cars-car/image/2020/07/dsc09285.jpg\", \"numbers\": [ \"918886778652\",\"918886778652\" ]}",
CURLOPT_HTTPHEADER => array(
"cache-control: no-cache",
"content-type: application/json",
"postman-token: bcc9508d-ef96-14c7-fa98-e17fa2fa65aa"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
import http.client
conn = http.client.HTTPConnection("connectwa.accgst.com")
payload = "{\"apikey\": \"2d1939a06e965882cbf6631de131c472\",\"msg\": \"test\",\"mediatype\": \"url/base64\",\"medianame\": \"Ferrari.jpg\",\"media\": \"https://www.topgear.com/sites/default/files/cars-car/image/2020/07/dsc09285.jpg\",\"numbers\": [ \"918886778652\",\"919303085557\"]}"
headers = {
'content-type': "application/json",
'cache-control': "no-cache",
'postman-token': "84c5ea3d-b3a1-8c36-49b4-955bc552c328"
}
conn.request("POST", "/message.php", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "https://connectwa.accgst.com/message.php"
payload = "{\"apikey\": \"2d1939a06e965882cbf6631de131c472\",\"msg\": \"test\",\"mediatype\": \"url/base64\",\"medianame\": \"Ferrari.jpg\",\"media\": \"https://www.topgear.com/sites/default/files/cars-car/image/2020/07/dsc09285.jpg\",\"numbers\": [ \"918886778652\",\"919303085557\"]}"
headers = {
'content-type': "application/json",
'cache-control': "no-cache",
'postman-token': "57c198c3-69f2-b9a0-4cac-3cefb5556679"
}
response = requests.request("POST", url, data=payload, headers=headers)
print(response.text)
require 'uri'
require 'net/http'
url = URI("https://connectwa.accgst.com/message.php")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request["cache-control"] = 'no-cache'
request["postman-token"] = 'd36c4356-f1a5-776f-49fb-96630645253d'
request.body = "{\"apikey\": \"2d1939a06e965882cbf6631de131c472\",\"msg\": \"test\",\"mediatype\": \"url/base64\",\"medianame\": \"Ferrari.jpg\",\"media\": \"https://www.topgear.com/sites/default/files/cars-car/image/2020/07/dsc09285.jpg\",\"numbers\": [ \"918886778652\",\"919303085557\"]}"
response = http.request(request)
puts response.read_body
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--header 'cache-control: no-cache' \
--header 'postman-token: 76ae3f09-011e-818e-a82f-f5f82d4f4ce7' \
--body-data '{"apikey": "2d1939a06e965882cbf6631de131c472","msg": "test","mediatype": "url/base64","medianame": "Ferrari.jpg","media": "https://www.topgear.com/sites/default/files/cars-car/image/2020/07/dsc09285.jpg","numbers": [ "918886778652","919303085557"]}' \
--output-document \
- https://connectwa.accgst.com/message.php
echo '{
"apikey": "2d1939a06e965882cbf6631de131c472",
"msg": "test",
"mediatype": "url/base64",
"medianame": "Ferrari.jpg",
"media": "https://www.topgear.com/sites/default/files/cars-car/image/2020/07/dsc09285.jpg",
"numbers": [
"918886778652","919303085557"
]
}' | \
http POST https://connectwa.accgst.com/message.php \
cache-control:no-cache \
content-type:application/json \
postman-token:1365b2a3-c3a1-9d6e-aa1f-260909e243a6
curl --request POST \
--url https://connectwa.accgst.com/message.php \
--header 'cache-control: no-cache' \
--header 'content-type: application/json' \
--header 'postman-token: 0b5a9797-39e8-ea4a-5da1-94fdcfd707c6' \
--data '{"apikey": "2d1939a06e965882cbf6631de131c472","msg": "test","mediatype": "url/base64","medianame": "Ferrari.jpg","media": "https://www.topgear.com/sites/default/files/cars-car/image/2020/07/dsc09285.jpg","numbers": [ "918886778652","919303085557"]}'
import Foundation
let headers = [
"content-type": "application/json",
"cache-control": "no-cache",
"postman-token": "7a465e7a-d255-5bd0-7d6b-a251cdd8efb8"
]
let parameters = [
"apikey": "2d1939a06e965882cbf6631de131c472",
"msg": "test",
"mediatype": "url/base64",
"medianame": "Ferrari.jpg",
"media": "https://www.topgear.com/sites/default/files/cars-car/image/2020/07/dsc09285.jpg",
"numbers": ["918886778652", "919303085557"]
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "https://connectwa.accgst.com/message.php")! 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()
POST /response.php HTTP/1.1 Host: connectwa.accgst.com/ Content-Type: application/x-www-form-urlencoded Cache-Control: no-cache Postman-Token: 37bc8bb2-0357-d508-5032-6c1645eef4b7 apikey=2d1939a06e965882cbf6631de131c472&msgid=2109172020145000000
CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST"); curl_easy_setopt(hnd, CURLOPT_URL, "https://connectwa.accgst.com/response.php"); struct curl_slist *headers = NULL; headers = curl_slist_append(headers, "postman-token: ed764eff-dc5b-ad58-848c-a7f81e2821a0"); headers = curl_slist_append(headers, "cache-control: no-cache"); headers = curl_slist_append(headers, "content-type: application/x-www-form-urlencoded"); curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers); curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "apikey=2d1939a06e965882cbf6631de131c472&msgid=2109172020145000000"); CURLcode ret = curl_easy_perform(hnd);
curl -X POST \ https://connectwa.accgst.com/response.php \ -H 'cache-control: no-cache' \ -H 'content-type: application/x-www-form-urlencoded' \ -H 'postman-token: 49501876-1d2a-c9df-a31c-743d17e1edc2' \ -d 'apikey=2d1939a06e965882cbf6631de131c472&msgid=2109172020145000000'
var client = new RestClient("https://connectwa.accgst.com/response.php");
var request = new RestRequest(Method.POST);
request.AddHeader("postman-token", "6c31f680-db03-d2f9-ccce-bbfc2ae8ff66");
request.AddHeader("cache-control", "no-cache");
request.AddHeader("content-type", "application/x-www-form-urlencoded");
request.AddParameter("application/x-www-form-urlencoded", "apikey=2d1939a06e965882cbf6631de131c472&msgid=2109172020145000000", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
)
func main() {
url := "https://connectwa.accgst.com/response.php"
payload := strings.NewReader("apikey=2d1939a06e965882cbf6631de131c472&msgid=2109172020145000000")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/x-www-form-urlencoded")
req.Header.Add("cache-control", "no-cache")
req.Header.Add("postman-token", "ed4afd75-b989-ba1d-c981-b42e665b4988")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/x-www-form-urlencoded");
RequestBody body = RequestBody.create(mediaType, "apikey=2d1939a06e965882cbf6631de131c472&msgid=2109172020145000000");
Request request = new Request.Builder()
.url("https://connectwa.accgst.com/response.php")
.post(body)
.addHeader("content-type", "application/x-www-form-urlencoded")
.addHeader("cache-control", "no-cache")
.addHeader("postman-token", "39c557ab-25eb-a1db-ec83-0c89a6c8b10e")
.build();
Response response = client.newCall(request).execute();
HttpResponseresponse = Unirest.post("https://connectwa.accgst.com/response.php") .header("content-type", "application/x-www-form-urlencoded") .header("cache-control", "no-cache") .header("postman-token", "3698492a-b303-711e-c345-fe86d97fbc23") .body("apikey=2d1939a06e965882cbf6631de131c472&msgid=2109172020145000000") .asString();
var settings = {
"async": true,
"crossDomain": true,
"url": "https://connectwa.accgst.com/response.php",
"method": "POST",
"headers": {
"content-type": "application/x-www-form-urlencoded",
"cache-control": "no-cache",
"postman-token": "d6d10e4a-8994-97e6-6229-acee1a08248a"
},
"data": {
"apikey": "2d1939a06e965882cbf6631de131c472",
"msgid": "2109172020145000000"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
var data = "apikey=2d1939a06e965882cbf6631de131c472&msgid=2109172020145000000";
var xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener("readystatechange", function () {
if (this.readyState === 4) {
console.log(this.responseText);
}
});
xhr.open("POST", "https://connectwa.accgst.com/response.php");
xhr.setRequestHeader("content-type", "application/x-www-form-urlencoded");
xhr.setRequestHeader("cache-control", "no-cache");
xhr.setRequestHeader("postman-token", "0eeeaa79-fb7f-7512-e9df-bc794c1d1dd4");
xhr.send(data);
var qs = require("querystring");
var http = require("http");
var options = {
"method": "POST",
"hostname": "connectwa.accgst.com",
"port": null,
"path": "/response.php",
"headers": {
"content-type": "application/x-www-form-urlencoded",
"cache-control": "no-cache",
"postman-token": "47f84d04-7440-d088-448c-27131e84cdba"
}
};
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({ apikey: '2d1939a06e965882cbf6631de131c472',
msgid: '2109172020145000000' }));
req.end();
var request = require("request");
var options = { method: 'POST',
url: 'https://connectwa.accgst.com/response.php',
headers:
{ 'postman-token': 'ff9b0c90-62df-2af0-5d23-dc2bcc842bb0',
'cache-control': 'no-cache',
'content-type': 'application/x-www-form-urlencoded' },
form:
{ apikey: '2d1939a06e965882cbf6631de131c472',
msgid: '2109172020145000000' } };
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
var unirest = require("unirest");
var req = unirest("POST", "https://connectwa.accgst.com/response.php");
req.headers({
"postman-token": "a7b5f50a-637d-5140-466d-39af7e546bf9",
"cache-control": "no-cache",
"content-type": "application/x-www-form-urlencoded"
});
req.form({
"apikey": "2d1939a06e965882cbf6631de131c472",
"msgid": "2109172020145000000"
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
#importNSDictionary *headers = @{ @"content-type": @"application/x-www-form-urlencoded", @"cache-control": @"no-cache", @"postman-token": @"3389f34e-c383-c9e1-ff66-3a2f9ae67ca7" }; NSMutableData *postData = [[NSMutableData alloc] initWithData:[@"apikey=2d1939a06e965882cbf6631de131c472" dataUsingEncoding:NSUTF8StringEncoding]]; [postData appendData:[@"&msgid=2109172020145000000" dataUsingEncoding:NSUTF8StringEncoding]]; NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"https://connectwa.accgst.com/response.php"] 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://connectwa.accgst.com/response.php" in let headers = Header.init () |> fun h -> Header.add h "content-type" "application/x-www-form-urlencoded" |> fun h -> Header.add h "cache-control" "no-cache" |> fun h -> Header.add h "postman-token" "25ec8926-f960-6e05-8485-a45b2164e6f2" in let body = Cohttp_lwt_body.of_string "apikey=2d1939a06e965882cbf6631de131c472&msgid=2109172020145000000" in Client.call ~headers ~body `POST uri >>= fun (res, body_stream) -> (* Do stuff with the result *)
$request = new HttpRequest();
$request->setUrl('https://connectwa.accgst.com/response.php');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders(array(
'postman-token' => '621ee038-601f-9a1b-b507-c586afd7b217',
'cache-control' => 'no-cache',
'content-type' => 'application/x-www-form-urlencoded'
));
$request->setContentType('application/x-www-form-urlencoded');
$request->setPostFields(array(
'apikey' => '2d1939a06e965882cbf6631de131c472',
'msgid' => '2109172020145000000'
));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
$client = new http\Client;
$request = new http\Client\Request;
$body = new http\Message\Body;
$body->append(new http\QueryString(array(
'apikey' => '2d1939a06e965882cbf6631de131c472',
'msgid' => '2109172020145000000'
)));
$request->setRequestUrl('https://connectwa.accgst.com/response.php');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders(array(
'postman-token' => '645b654e-3670-8fdf-bc9d-87df5525be7d',
'cache-control' => 'no-cache',
'content-type' => 'application/x-www-form-urlencoded'
));
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://connectwa.accgst.com/response.php",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "apikey=2d1939a06e965882cbf6631de131c472&msgid=2109172020145000000",
CURLOPT_HTTPHEADER => array(
"cache-control: no-cache",
"content-type: application/x-www-form-urlencoded",
"postman-token: 3a805aba-3b39-672e-b2fd-976c1684f5e8"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
import http.client
conn = http.client.HTTPConnection("connectwa.accgst.com")
payload = "apikey=2d1939a06e965882cbf6631de131c472&msgid=2109172020145000000"
headers = {
'content-type': "application/x-www-form-urlencoded",
'cache-control': "no-cache",
'postman-token': "ee2f86b1-28e7-75a9-8c04-c4801dc0bd8f"
}
conn.request("POST", "/response.php", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "https://connectwa.accgst.com/response.php"
payload = "apikey=2d1939a06e965882cbf6631de131c472&msgid=2109172020145000000"
headers = {
'content-type': "application/x-www-form-urlencoded",
'cache-control': "no-cache",
'postman-token': "2ad40701-ff68-d171-47f2-e910f9d2631b"
}
response = requests.request("POST", url, data=payload, headers=headers)
print(response.text)
require 'uri'
require 'net/http'
url = URI("https://connectwa.accgst.com/response.php")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/x-www-form-urlencoded'
request["cache-control"] = 'no-cache'
request["postman-token"] = '70e33d7c-c96a-df48-253e-97105eb16674'
request.body = "apikey=2d1939a06e965882cbf6631de131c472&msgid=2109172020145000000"
response = http.request(request)
puts response.read_body
wget --quiet \ --method POST \ --header 'content-type: application/x-www-form-urlencoded' \ --header 'cache-control: no-cache' \ --header 'postman-token: 53422b7f-a7cb-59f6-8ad1-8fd2a8026e95' \ --body-data 'apikey=2d1939a06e965882cbf6631de131c472&msgid=2109172020145000000' \ --output-document \ - https://connectwa.accgst.com/response.php
http --form POST https://connectwa.accgst.com/response.php \ cache-control:no-cache \ content-type:application/x-www-form-urlencoded \ postman-token:678af9b9-d8c2-5a61-37b5-55297d5ad4e4 \ apikey=2d1939a06e965882cbf6631de131c472 \ msgid=2109172020145000000
curl --request POST \ --url https://connectwa.accgst.com/response.php \ --header 'cache-control: no-cache' \ --header 'content-type: application/x-www-form-urlencoded' \ --header 'postman-token: 44dceae7-dc36-648e-edc8-a1e715ca1919' \ --data 'apikey=2d1939a06e965882cbf6631de131c472&msgid=2109172020145000000'
import Foundation
let headers = [
"content-type": "application/x-www-form-urlencoded",
"cache-control": "no-cache",
"postman-token": "bca05ea5-adf7-24b5-b006-e41ff655c925"
]
let postData = NSMutableData(data: "apikey=2d1939a06e965882cbf6631de131c472".data(using: String.Encoding.utf8)!)
postData.append("&msgid=2109172020145000000".data(using: String.Encoding.utf8)!)
let request = NSMutableURLRequest(url: NSURL(string: "https://connectwa.accgst.com/response.php")! 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()