Skip to content

Instantly share code, notes, and snippets.

@shakirullahi
Created July 16, 2016 11:08
Show Gist options
  • Save shakirullahi/5c5ae9387c1e484ebd74b3d052b79c35 to your computer and use it in GitHub Desktop.
Save shakirullahi/5c5ae9387c1e484ebd74b3d052b79c35 to your computer and use it in GitHub Desktop.
e-treasury : Verification defacement
<?php
$url = 'http://103.251.43.79/echallan/challan/models/frmgrnverificationdefacement.php';
$myvars = 'GRN=KL000001500201415E&USERID=abc';
$ch = curl_init( $url );
curl_setopt( $ch, CURLOPT_POST, 1);
curl_setopt( $ch, CURLOPT_POSTFIELDS, $myvars);
curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt( $ch, CURLOPT_HEADER, 0);
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec( $ch );
$response_array = explode('$',$response);
echo "GRN = " . $response_array[2];
echo "<br>ENTRYDATE = " . $response_array[4];
echo "<br>AMOUNT = " . $response_array[6];
echo "<br>CIN = " . $response_array[8];
echo "<br>CIN = " . $response_array[8];
echo "<br>PARTYNAME = " . $response_array[10];
echo "<br>VERIFICATIONNUMBER = " . $response_array[12];
echo "<br>DEFACEFLAG = " . $response_array[14];
echo "<br>DEFACEMENTNO = " . $response_array[16];
echo "<br>DEFACEDATE = " . $response_array[18];
echo "<br>ACCOUNTDETAILS = " . $response_array[20];
echo "<br>S = " . $response_array[22];
echo "<br>(0030-02-102-99-00) Non judicial = " . $response_array[24];
echo "<br>(0030-02-102-99-00) Stamps and Registration Fees,S = " . $response_array[26];
echo "<br>ERROR = " . $response_array[28];
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment