Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
<html>
<head>
<title>Online PHP Script Execution</title>
</head>
<body>
<?php
$baseurl = 'https://67.227.153.226:8080/enatis-gateway-1.0-SNAPSHOT/rest/json/uploadMicrodot';
/**
* Authenicate and get back token
*/
$curl = curl_init($baseurl);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_HEADER, false);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
// Set the POST arguments to pass to the Sugar server
$rawPOSTdata = array(
"vinOrChassisNumber" => "AHT101A0000000001",
"microdotPIN" => "JAYJUJUJUWJ",
"effectiveDate" => "2017-10-01",
);
curl_setopt($curl, CURLOPT_POSTFIELDS, json_encode($rawPOSTdata));
curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
// Make the REST call, returning the result
$response = curl_exec($curl);
if (!$response) {
die("Connection Failure.\n");
}
die($response);
// Convert the result from JSON format to a PHP array
$result = json_decode($response);
curl_close($curl);
if ( isset($result->error) ) {
die($result->error_message."\n");
}
?>
</body>
</html>