the last bit of my php code looks like this:
$curl = curl_init("../s/r.asp");
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_HTTPHEADER, array("Content-type: application/json"));
curl_setopt($curl, CURLOPT_POSTFIELDS, $json);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_NOBODY, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false);
$output = curl_exec($curl);
if ($output === false)
{
echo 'Curl error: ' . curl_error($curl). '<br />';
echo 'Curl info: ' . curl_getinfo($curl). '<br />';
curl_close($curl);
}
else
{
curl_close($curl);
}
But now, I have to decode and print the data in asp. I don't exactly know where to start. If anyone can provide some guidance or some similar sample code that I can use to understand how I can start that would be appreciated.
What I have tried:
I have read about Dim reader As New System.IO.StreamReader(HttpContext.Current.Request.InputStream)
but again im not sure how to even start