如何从httpreceivehttprequest获取授权信息 [英] How to obtain authorization info from httpreceivehttprequest
问题描述
我正在使用HTTPAPI_VERSION_1来实现HTTP服务器.我正在使用HTTPAPI_VERSION_1,因为我也想在Windows 2003上运行HTTP Web服务器.
我发现很难确定httpreceivehttprequest函数如何返回HTTP身份验证信息.
在HTTPAPI_VERSION_2中,httpreceivehttprequest返回具有授权相关信息的HTTP_REQUEST_AUTH_INFO. MSDN示例也使用相同的示例.
请让我知道如何在HTTPAPI_VERSION_1中获取授权信息.
I am using HTTPAPI_VERSION_1 to implement an HTTP server. I am using HTTPAPI_VERSION_1 as I want to run the HTTP web server on Windows 2003 as well.
I am finding it difficult to identify how HTTP authentication information is returned by httpreceivehttprequest function.
In HTTPAPI_VERSION_2 httpreceivehttprequest returns HTTP_REQUEST_AUTH_INFO which has authorization related information. MSDN sample also uses the same.
Please let me know how to obtain authorization information in HTTPAPI_VERSION_1.
推荐答案
找到了答案.
HTTPAPI_VERSION_1 API本身并不实现身份验证.这样做是应用程序的责任-相当痛苦:(但这是唯一的出路............
Found the answer.
HTTPAPI_VERSION_1 APIs do not implement authentication by itself. It is the application''s responsibility to do it - rather painful :( But that is the only way out............
这篇关于如何从httpreceivehttprequest获取授权信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!