简体   繁体   中英

webBrowser control adding custom referer in c#

您好,我想问一下如何在此代码行中添加自定义引用信息,因为我在用户代理之后尝试添加,但没有用,谢谢。

webBrowser1.Navigate("http://yoursite.com", "_self", null, "User-Agent: Custom User Agent string");

换行:

"User-Agent: Custom User Agent string\r\nReferer: Custom Referrer"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM