msxml

VBScript, MSXML and Namespaces

こ雲淡風輕ζ 提交于 2021-02-08 15:32:01
问题 Given the following XML: <?xml version="1.0"?> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <GetMsisdnResponse xmlns="http://my.domain.com/"> <GetMsisdnResult> <RedirectUrl>http://my.domain.com/cw/DoIdentification.do2?sessionid=71de6551fc13e6625194</RedirectUrl> </GetMsisdnResult> </GetMsisdnResponse> </soap:Body> </soap:Envelope> I am trying to access the

Vb6 http post request on windows XP

旧城冷巷雨未停 提交于 2021-02-07 20:51:16
问题 I have a problem sending POST request with VB6. The code below works properly on Windows7 but on Windows XP it run without any runtime error and it sends the packet but looks like it doesn't append the post data in the packet. My code is like this: Set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP") xmlhttp.open "POST", url, False xmlhttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded" xmlhttp.setRequestHeader "Content-Length", Len(parameters) xmlhttp.Send parameters where

Vb6 http post request on windows XP

女生的网名这么多〃 提交于 2021-02-07 20:46:00
问题 I have a problem sending POST request with VB6. The code below works properly on Windows7 but on Windows XP it run without any runtime error and it sends the packet but looks like it doesn't append the post data in the packet. My code is like this: Set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP") xmlhttp.open "POST", url, False xmlhttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded" xmlhttp.setRequestHeader "Content-Length", Len(parameters) xmlhttp.Send parameters where

MSXML2.XMLHTTP fails to send request cookie header

风流意气都作罢 提交于 2021-01-29 20:47:27
问题 I'm trying to create some automated web searches in this website using Excel VBA but in order to use it, you need to agree with it's terms and conditions. The website then stores your agreement in a cookie "agree=True". But, while using MSXML2.XMLHTTP , I'm not able to set the cookie request header using setRequestHeader , so it redirects me to the usage agree page on every request. I know there's a bug using MSXML2 as stated here, but I don't see how I can use the workaround provided in the

Excel VBA MSXML2.XMLHTTP unable to login to website with form (method=post)

a 夏天 提交于 2020-08-10 19:39:31
问题 I have written a piece of code to scrape HTML of a website that requires login. Originally I used IE automation but it was painfully slow so I'm exploring other option including MSXML2.XMLHTTP. I can login to website without any issues with IE but can't make it work with MSXML2.XMLHTTP. This works ok: With ieDoc.Forms(0) .textLogin.Value = GPROUsername .textPassword.Value = GPROPassword .submit End With Unable to login with this one: Sub TestHTTPLogin() Dim XMLHttpRequest As Object LoginForm

Excel VBA MSXML2.XMLHTTP unable to login to website with form (method=post)

拈花ヽ惹草 提交于 2020-08-10 19:37:40
问题 I have written a piece of code to scrape HTML of a website that requires login. Originally I used IE automation but it was painfully slow so I'm exploring other option including MSXML2.XMLHTTP. I can login to website without any issues with IE but can't make it work with MSXML2.XMLHTTP. This works ok: With ieDoc.Forms(0) .textLogin.Value = GPROUsername .textPassword.Value = GPROPassword .submit End With Unable to login with this one: Sub TestHTTPLogin() Dim XMLHttpRequest As Object LoginForm

Declaring early bound MSXML object throws an error in VBA

点点圈 提交于 2020-07-17 09:25:53
问题 I am trying to import xml data into excel.. So the first line of the code is Dim XMLDOC As MSXML2.DOMDocument and this gives an error "user defined type not defined" 回答1: Inside the VBE, Go to Tools -> References, then Select Microsoft XML, v6.0 (or whatever your latest is. This will give you access to the XML Object Library. Updated with fancy pic! 回答2: I had DOMDocument defined which needed Microsoft XML, v3.0 but I had Microsoft XML, v6.0 selected in references which caused the below error

Declaring early bound MSXML object throws an error in VBA

限于喜欢 提交于 2020-07-17 09:25:24
问题 I am trying to import xml data into excel.. So the first line of the code is Dim XMLDOC As MSXML2.DOMDocument and this gives an error "user defined type not defined" 回答1: Inside the VBE, Go to Tools -> References, then Select Microsoft XML, v6.0 (or whatever your latest is. This will give you access to the XML Object Library. Updated with fancy pic! 回答2: I had DOMDocument defined which needed Microsoft XML, v3.0 but I had Microsoft XML, v6.0 selected in references which caused the below error

Declaring early bound MSXML object throws an error in VBA

自闭症网瘾萝莉.ら 提交于 2020-07-17 09:24:22
问题 I am trying to import xml data into excel.. So the first line of the code is Dim XMLDOC As MSXML2.DOMDocument and this gives an error "user defined type not defined" 回答1: Inside the VBE, Go to Tools -> References, then Select Microsoft XML, v6.0 (or whatever your latest is. This will give you access to the XML Object Library. Updated with fancy pic! 回答2: I had DOMDocument defined which needed Microsoft XML, v3.0 but I had Microsoft XML, v6.0 selected in references which caused the below error

How to send a HTTP POST from Classic ASP with a parameter to a WEB API?

和自甴很熟 提交于 2020-04-11 04:34:08
问题 I am trying to create a call to a WEB API on the same machine on another port. It works fine and sends back the string and hits the .NET breakpoint but the parameter is never being passed..(it is null) .. Is there something I am missing in the classic ASP code to pass that string ? (DataToSend) My calling code: <% Response.Buffer = True Dim xml ' Set xml = Server.CreateObject("Microsoft.XMLHTTP") Set xml = server.Createobject("MSXML2.XMLHTTP") DataToSend="<?xml version=""1.0"" encoding=""UTF