Phantom中的SPNEGO身份验证 [英] SPNEGO authentication in Phantom
问题描述
使用Phantomjs进行实验以从我们公司使用的供应商应用程序中抓取一些信息.打开页面并进行渲染时,我可以看到唯一的输出是消息
Experimenting with Phantomjs to scrape some information from a vendor application our company uses. When I open the page and render it, I can see that the only output is the message
此客户端不支持SPNEGO身份验证.
SPNEGO authentication is not supported on this client.
我以前在Firefox中看到过该消息,解决方案是将主机添加到受信任的uris.对于FF来说很棒,但是在phantomjs脚本的上下文中,有没有办法将网站声明为受信任?
I had seen that message in Firefox before, and the solution was to add the host to the trusted uris. That's great for FF, but in the context of a phantomjs script, is there a way to declare a site as trusted?
更新:根据Artjom的建议尝试了命令行参数,但没有区别.
UPDATE: Tried the command-line parameters per Artjom's suggestion but no difference.
推荐答案
我不认为该协议是在PhantomJS中实现的. PhantomJS构建在QtWebKit之上.我发现了一个旧的 Aurora问题. Aurora也基于QtWebKit.
I don't think this protocol is implemented in PhantomJS. PhantomJS is built on top of QtWebKit. I found an old Aurora issue. Aurora is also based on QtWebKit.
如果您在 phantomjs存储库中搜索SPNEGO
或kerberos
,则不会找到很多.搜索negotiate
仅显示一些常量,而没有实际实现.
If you search for SPNEGO
or kerberos
in the phantomjs repo, you don't find much. Searching for negotiate
shows only some constants, but no actual implementation.
这篇关于Phantom中的SPNEGO身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!