如何从 CherryPy 上的 Bottle 获取访问者的 Windows 用户名?
How to get the Windows username of the visitor from Bottle on CherryPy?
我正在尝试查看是否可以在以下配置中检索访问者的 Windows 用户名:
from bottle import route, run, template, request
@route('/')
def index():
return 'Hello World'
run(host = '0.0.0.0', port=1986, server ='cherrypy')
是否可以轻松获取访问者的 windows 用户名,而不必 运行 在 IIS 服务器上执行此操作?
没有。 HTTP 请求通常不包含有关发出请求的桌面用户的任何信息。
我正在尝试查看是否可以在以下配置中检索访问者的 Windows 用户名:
from bottle import route, run, template, request
@route('/')
def index():
return 'Hello World'
run(host = '0.0.0.0', port=1986, server ='cherrypy')
是否可以轻松获取访问者的 windows 用户名,而不必 运行 在 IIS 服务器上执行此操作?
没有。 HTTP 请求通常不包含有关发出请求的桌面用户的任何信息。