I am doing a cross domain post in .net, but in net they have provided me with php example….i would like to convert the php code to .net. Please help.
<?php
header('Content-type: text/html');
header('Access-Control-Allow-Origin: *');
$uri = 'http'. ($_SERVER['HTTPS'] ? 's' : null) .'://'. $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
echo('<p>This information has come from <a href="' . $uri . '">' . $uri . '</a></p>');
?>
Try something like this:-
$_SERVERis equivalent toRequest.ServerVariables[]