【发布时间】:2012-07-02 14:34:45
【问题描述】:
我正在.net 中进行跨域发布,但在net 中,他们为我提供了php 示例....我想将php 代码转换为.net。请帮忙。
<?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>');
?>
【问题讨论】:
标签: c# php asp.net xmlhttprequest cross-domain