Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
为了调试,我需要操作 GeckoFX Webbrowser 控件的 HTTP-Request 中的主机字段。有谁知道我该怎么做?
好,我知道了。您必须设置一个额外的标头,然后主机标头将被替换。例子:
geckoWebBrowser1.Navigate(urlTB.Text, Skybound.Gecko.GeckoLoadFlags.None, referrerTB.Text, null, string.Format("Host: {0}\r\n", hostTB.Text));