vb.net webbrowser不被网站接受 [英] vb.net webbrowser not accepted by a website
问题描述
你好,
我需要导航到
http://uae.souq。 com / ae-en / nokia-6300-480117 / i /
例如,但该网站不接受vb.net浏览器,它说我需要升级。一个解决方法是使用webkit,虽然有效,但经过多次刷新后崩溃了。我正在研究的是监控我在线销售的产品的工具。
我试过
WebBrowser1.Navigate( http://uae.souq.com/ae-en/nokia-6300-480117/i/,Nothing,Nothing, User-Agent:Mozilla / 5.0(兼容; MSIE 9.0; Windows NT 6.1; WOW64; Trident / 5.0))
我也尝试在IE中打开页面,但我似乎无法访问页面HTML。
帮助表示感谢。 <
请看我对这个问题的评论,这是最好的解决方案。
但你也可以伪造浏览器信息,如果你真的想,它可能对你有帮助。
-SA
不要使用User-Agent:Mozilla / 5.0(兼容; MSIE 9.0; Windows NT 6.1; WOW64; Trident / 5.0只需键入。
WebBrowser1.Navigate( http:/ /uae.souq.com/ae-en/nokia-6300-480117/i /跨度>)
Hello,
I need to navigate to
http://uae.souq.com/ae-en/nokia-6300-480117/i/
for example, but the site is not accepting the vb.net browser and it is saying I need to upgrade. A workaround was to use webkit, that worked but after many refreshes it crashes. What I am working on is a tool to monitor the products I sell online.
I tried
WebBrowser1.Navigate("http://uae.souq.com/ae-en/nokia-6300-480117/i/", Nothing, Nothing, "User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)")
with no luck, I also tried to just open the page in IE, but I cant seem to access the page html.
Help appreciated. <
Please see my comment to the question, which would be the best solution.
But you also can fake browser information, if you really want to, it might help you.
—SA
Don't use the"User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0"Just type.
WebBrowser1.Navigate("http://uae.souq.com/ae-en/nokia-6300-480117/i/")
这篇关于vb.net webbrowser不被网站接受的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!