• <legend id='Voju4'><style id='Voju4'><dir id='Voju4'><q id='Voju4'></q></dir></style></legend>
  • <tfoot id='Voju4'></tfoot>

    1. <small id='Voju4'></small><noframes id='Voju4'>

          <bdo id='Voju4'></bdo><ul id='Voju4'></ul>
        <i id='Voju4'><tr id='Voju4'><dt id='Voju4'><q id='Voju4'><span id='Voju4'><b id='Voju4'><form id='Voju4'><ins id='Voju4'></ins><ul id='Voju4'></ul><sub id='Voju4'></sub></form><legend id='Voju4'></legend><bdo id='Voju4'><pre id='Voju4'><center id='Voju4'></center></pre></bdo></b><th id='Voju4'></th></span></q></dt></tr></i><div id='Voju4'><tfoot id='Voju4'></tfoot><dl id='Voju4'><fieldset id='Voju4'></fieldset></dl></div>

        在 System.Windows.Forms.WebBrowser 中添加 HTTP 标头和发布数据

        Adding HTTP Headers and Post data in a System.Windows.Forms.WebBrowser(在 System.Windows.Forms.WebBrowser 中添加 HTTP 标头和发布数据)

          <tbody id='aUuff'></tbody>
      1. <legend id='aUuff'><style id='aUuff'><dir id='aUuff'><q id='aUuff'></q></dir></style></legend>

        1. <small id='aUuff'></small><noframes id='aUuff'>

        2. <i id='aUuff'><tr id='aUuff'><dt id='aUuff'><q id='aUuff'><span id='aUuff'><b id='aUuff'><form id='aUuff'><ins id='aUuff'></ins><ul id='aUuff'></ul><sub id='aUuff'></sub></form><legend id='aUuff'></legend><bdo id='aUuff'><pre id='aUuff'><center id='aUuff'></center></pre></bdo></b><th id='aUuff'></th></span></q></dt></tr></i><div id='aUuff'><tfoot id='aUuff'></tfoot><dl id='aUuff'><fieldset id='aUuff'></fieldset></dl></div>
          <tfoot id='aUuff'></tfoot>
            <bdo id='aUuff'></bdo><ul id='aUuff'></ul>

                • 本文介绍了在 System.Windows.Forms.WebBrowser 中添加 HTTP 标头和发布数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在尝试使用 System.Windows.Forms.WebBrowser 发出既发送 POST 数据又发送自定义 HTTP 标头的请求.我也想设置请求的用户代理.我怎么能这样做?

                  I'm trying to use the System.Windows.Forms.WebBrowser to make a request that both sends POST data and custom HTTP headers. I'd like to set the user-agent of the request as well. How could I do this?

                  推荐答案

                  您可以使用此 导航重载.但是要完全控制包括用户代理在内的请求表单并抑制 IE 默认发送的标头(如果可能的话)需要如此多的互操作,因此最好使用 HttpWebRequest 滚动自己的请求并将输出输入浏览器不知何故.

                  You can send POST data and additional HTTP headers using this Navigate overload. But to have complete control over the request form including user agent and suppressing headers that IE will send by default would (if even possible) require so much interop that you'd be better off just rolling your own requests using HttpWebRequest and feeding the output into the browser somehow.

                  这里是关于自定义网络浏览器.请注意,这是基于 .NET WebBrowser 控件的 COM 基础.除了最常见的场景,您需要通过控件的 IWebBrowser2 接口,这意味着熟悉 COM 互操作.这不是很有趣,但也没有那么糟糕.

                  Here is some additional information on customizing the WebBrowser. Note that this is based on the COM underpinnings of the .NET WebBrowser control. For all but the most common scenarios you need to go through the control's IWebBrowser2 interface which means getting familiar with COM interop. It's not exactly fun, but it's not that bad.

                  这篇关于在 System.Windows.Forms.WebBrowser 中添加 HTTP 标头和发布数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Adding and removing users from Active Directory groups in .NET(在 .NET 中的 Active Directory 组中添加和删除用户)
                  set equality in linq(在 linq 中设置相等)
                  HashSet conversion to List(HashSet 转换为 List)
                  How to set timeout for webBrowser navigate event(如何为 webBrowser 导航事件设置超时)
                  Test whether two IEnumerablelt;Tgt; have the same values with the same frequencies(测试两个IEnumerablelt;Tgt;具有相同频率的相同值)
                  How do you determine if two HashSets are equal (by value, not by reference)?(您如何确定两个 HashSet 是否相等(按值,而不是按引用)?)
                  <i id='PVBUr'><tr id='PVBUr'><dt id='PVBUr'><q id='PVBUr'><span id='PVBUr'><b id='PVBUr'><form id='PVBUr'><ins id='PVBUr'></ins><ul id='PVBUr'></ul><sub id='PVBUr'></sub></form><legend id='PVBUr'></legend><bdo id='PVBUr'><pre id='PVBUr'><center id='PVBUr'></center></pre></bdo></b><th id='PVBUr'></th></span></q></dt></tr></i><div id='PVBUr'><tfoot id='PVBUr'></tfoot><dl id='PVBUr'><fieldset id='PVBUr'></fieldset></dl></div>

                      • <bdo id='PVBUr'></bdo><ul id='PVBUr'></ul>

                          <tfoot id='PVBUr'></tfoot>

                            <tbody id='PVBUr'></tbody>
                          <legend id='PVBUr'><style id='PVBUr'><dir id='PVBUr'><q id='PVBUr'></q></dir></style></legend>
                          • <small id='PVBUr'></small><noframes id='PVBUr'>