我可以从webapi请求中获得IP地址,但是我想知道是否有一种方法可以从python发出的webapi请求中获取activedirectory或目录服务id?在
下面将回显用户的IP地址。如何从python打一个电话让我回显他们的广告或DS id?在
public HttpResponseMessage Get(string system)
{
// validate ip address
string ip = HttpContext.Current.Request.UserHostAddress;
return new HttpResponseMessage()
{
Content = new StringContent(ip)
};
}
这是你想要的吗?(必须添加对的引用System.DirectoryServices.AccountManagement.dll)
相关问题 更多 >
编程相关推荐