<small id='dKb3x'></small><noframes id='dKb3x'>

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

        <tfoot id='dKb3x'></tfoot>
        <legend id='dKb3x'><style id='dKb3x'><dir id='dKb3x'><q id='dKb3x'></q></dir></style></legend>
          <bdo id='dKb3x'></bdo><ul id='dKb3x'></ul>

        在 VBA HTTP Post 请求中传递参数

        时间:2023-10-13
        <tfoot id='mFk7Q'></tfoot>

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

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

            • <small id='mFk7Q'></small><noframes id='mFk7Q'>

                <legend id='mFk7Q'><style id='mFk7Q'><dir id='mFk7Q'><q id='mFk7Q'></q></dir></style></legend>
                  <tbody id='mFk7Q'></tbody>

                  本文介绍了在 VBA HTTP Post 请求中传递参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我正在尝试在 http://forums.egullet.org 的主搜索栏上做一个简单的发布请求/.(这是一个例子,但我正在尝试构建一种适用于许多人的工具.)

                  I'm trying to do a simple post request on the main search bar of http://forums.egullet.org/. (This is one example, but I'm trying to build a tool that will work with many.)

                  问题是我似乎无法找出正确的方法来构造/放置参数以便服务器处理我的请求.(我确实收到了响应,但这只是一个页面要求我再次尝试搜索,而不是我在浏览器中进行搜索时得到的结果.参数字符串是直接从 firebug 中提取的,所以我很公平确定它是正确的.我只是觉得我没有把它放在正确的位置/正确地构造它/说出我需要的一切,但我不知道要改变什么.值得注意的是,我以前有这通过编辑 Internet Explorer 对象的 DOM 来工作,但我正在尝试切换到 XMLHTTP,因为它更快/更可靠.感谢您的帮助!

                  The problem is that I can't seem to figure out the right way to structure/place the parameters such that the server processes my request. (I do get a response, but it's just a page asking me to try the search again, rather than the result I get when I do the search in a browser. The argument string was pulled straight out of firebug, so I'm fairly sure that it's correct. I just get the impression that i'm not putting it in the right place/structuring it correctly/saying everything that I need to, but I don't know what to change. It's worth noting that I previously had this working by editing the DOM of an internet explorer object, but I'm trying to switch to XMLHTTP because it's much faster/more reliable. Thanks for your help!

                  Sub httpPost()
                  Dim XMLHTTP
                  Dim result As String
                  Dim argumentString
                  argumentString = "?search_term=eggs&search_app=forums"
                  Set XMLHTTP = CreateObject("MSXML2.XMLHTTP.6.0")
                  XMLHTTP.Open "POST", _
                      "http://forums.egullet.org/index.php?app=core&module=search&do=search&fromMainBar=1", False
                  XMLHTTP.setRequestHeader "User-Agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
                  XMLHTTP.setRequestHeader "Content-type", "application/x-www-form-urlencoded"
                  XMLHTTP.send argumentString
                  result = XMLHTTP.responsetext
                  Set XMLHTTP = Nothing
                  End Sub
                  

                  推荐答案

                  我认为你需要一个带问号的 & 符号

                  I think you need an ampersand where you have a question mark

                  argumentString = "&search_term=eggs&search_app=forums"
                  

                  这篇关于在 VBA HTTP Post 请求中传递参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:XMLHttpRequest - SEC7127:CORS 请求的重定向被阻止 下一篇:不推荐使用同步 XMLHttpRequest

                  相关文章

                  最新文章

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

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