CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "https://api.apihh.com/v1/enterprise/three/verify?credit_code=SOME_STRING_VALUE&company_name=SOME_STRING_VALUE&legal_person_name=SOME_STRING_VALUE");
CURLcode ret = curl_easy_perform(hnd);
var client = new RestClient("https://api.apihh.com/v1/enterprise/three/verify?credit_code=SOME_STRING_VALUE&company_name=SOME_STRING_VALUE&legal_person_name=SOME_STRING_VALUE");
var request = new RestRequest(Method.POST);
IRestResponse response = client.Execute(request);
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://api.apihh.com/v1/enterprise/three/verify?credit_code=SOME_STRING_VALUE&company_name=SOME_STRING_VALUE&legal_person_name=SOME_STRING_VALUE")
.post(null)
.build();
Response response = client.newCall(request).execute();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener("readystatechange", function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open("POST", "https://api.apihh.com/v1/enterprise/three/verify?credit_code=SOME_STRING_VALUE&company_name=SOME_STRING_VALUE&legal_person_name=SOME_STRING_VALUE");
xhr.send(data);
const http = require("https");
const options = {
"method": "POST",
"hostname": "api.apihh.com",
"port": null,
"path": "/v1/enterprise/three/verify?credit_code=SOME_STRING_VALUE&company_name=SOME_STRING_VALUE&legal_person_name=SOME_STRING_VALUE",
"headers": {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
#import <Foundation/Foundation.h>
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"https://api.apihh.com/v1/enterprise/three/verify?credit_code=SOME_STRING_VALUE&company_name=SOME_STRING_VALUE&legal_person_name=SOME_STRING_VALUE"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
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];
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.apihh.com/v1/enterprise/three/verify?credit_code=SOME_STRING_VALUE&company_name=SOME_STRING_VALUE&legal_person_name=SOME_STRING_VALUE",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
require 'uri'
require 'net/http'
require 'openssl'
url = URI("https://api.apihh.com/v1/enterprise/three/verify?credit_code=SOME_STRING_VALUE&company_name=SOME_STRING_VALUE&legal_person_name=SOME_STRING_VALUE")
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)
response = http.request(request)
puts response.read_body
curl --request POST \
--url 'https://api.apihh.com/v1/enterprise/three/verify?credit_code=SOME_STRING_VALUE&company_name=SOME_STRING_VALUE&legal_person_name=SOME_STRING_VALUE'
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api.apihh.com/v1/enterprise/three/verify?credit_code=SOME_STRING_VALUE&company_name=SOME_STRING_VALUE&legal_person_name=SOME_STRING_VALUE"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
import http.client
conn = http.client.HTTPSConnection("api.apihh.com")
conn.request("POST", "/v1/enterprise/three/verify?credit_code=SOME_STRING_VALUE&company_name=SOME_STRING_VALUE&legal_person_name=SOME_STRING_VALUE")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "https://api.apihh.com/v1/enterprise/three/verify?credit_code=SOME_STRING_VALUE&company_name=SOME_STRING_VALUE&legal_person_name=SOME_STRING_VALUE")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
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()