use*_*183 4 url asp.net-web-api
网站1:test.page.com/News
网站2:www.page.com/News
网站3:m.site.com/News
嗨,我正在呼唤一个pageapi.
Web Api网址:http://www.pageapi.com/api/GetNews
如何在我的Getnews api控制器中获取网站URL(http://m.site.com/)?哪个页面贴出我的api?
我尝试Url.Request,Request.RequestUri,HttpContext.Current.Request.Path.但我没有得到.总是得到网络api url.
| 归档时间: |
|
| 查看次数: |
4471 次 |
| 最近记录: |