serverxmlhttp

ServerXmlHttpRequest hanging sometimes when doing a POST

一世执手 提交于 2019-12-12 03:30:04
问题 I have a job that periodically does some work involving ServerXmlHttpRquest to perform an HTTP POST . The job runs every 60 seconds. And normally it runs without issue. But there's about a 1 in 50,000 chance (every two or three months) that it will hang: IXMLHttpRequest http = new ServerXmlHttpRequest(); http.open("POST", deleteUrl, false, "", ""); http.send(stuffToDelete); <---hang When it hangs, not even the Task Scheduler (with the option enabled to kill the job if it takes longer than 3

paypal classic asp msxml error on windows server 2008

五迷三道 提交于 2019-12-11 11:42:43
问题 The following routine works fine from my Win 2003 server to send a pay request to Paypal. Set vXMLHttp = Server.CreateObject("MSXML2.ServerXMLHTTP.6.0") vXMLHttp.setOption(3) = CERT_PATH strURL = KEYPOINT &"/AdaptivePayments/Pay" vXMLHttp.open "POST", strURL, false vXMLHttp.setRequestHeader "X-PAYPAL-SECURITY-USERID", API_USERNAME vXMLHttp.setRequestHeader "X-PAYPAL-SECURITY-PASSWORD", API_PASSWORD 'vXMLHttp.setRequestHeader "X-PAYPAL-SECURITY-SIGNATURE", API_SIGNATURE vXMLHttp

ServerXMLHTTP request returing data but not returning url of final page after 301 redirection

狂风中的少年 提交于 2019-12-11 05:55:51
问题 I am trying to make LINK FINDER app in ASP It working is divided into 5 step Send http request to server at www.foo.com Check status of request If its 200 then move to step 4 otherwise show error Parse all link Send http request to server to parsed link I am able to do first 4 step, But facing challenge in 5th step I am getting 3 type of links 1.)absolute link : http://www.foo.com/file.asp 2.)links from root directory, which need domain name eg /folder2/file2.asp 3.)relative link : ../file3

IXMLHttpRequest.responseXml is empty, with no parse error, when responseText contains valid Xml

岁酱吖の 提交于 2019-12-09 11:24:56
问题 i am fetching some XML from a government web-site: http://www.bankofcanada.ca/stats/assets/rates_rss/noon/en_all.xml i am using the following, fairly simple code: var szUrl: string; http: IXMLHTTPRequest; begin szUrl := 'http://www.bankofcanada.ca/stats/assets/rates_rss/noon/en_all.xml'; http := CoXMLHTTP60.Create; http.open('GET', szUrl, False, '', ''); http.send(EmptyParam); Assert(http.Status = 200); Memo1.Lines.Add('HTTP/1.1 '+IntToStr(http.status)+' '+http.statusText); Memo1.Lines.Add

VBA XMLHTTP Pagination Issue - Can't get past the second page of search results

好久不见. 提交于 2019-12-08 14:20:24
I'm developing VBA code to help keep an Excel workbook synced with a web invoicing service at https://www.fel.mx/CFDI33/Presentacion/Usuario/Ingreso.aspx I developed some working functionality using an Internet Explorer object and decided to try my luck migrating it to XMLHTTP to hopefully get better performance and reliability. The functionality I'm working on right now is simply to login to the web service and get a list of all the cancelled invoices As of now, I'm able to get past the login screen, navigate to the invoice registry, filter the list of invoices by "Cancelled" state and

VBA XMLHTTP Pagination Issue - Can't get past the second page of search results

北慕城南 提交于 2019-12-08 07:07:15
问题 I'm developing VBA code to help keep an Excel workbook synced with a web invoicing service at https://www.fel.mx/CFDI33/Presentacion/Usuario/Ingreso.aspx I developed some working functionality using an Internet Explorer object and decided to try my luck migrating it to XMLHTTP to hopefully get better performance and reliability. The functionality I'm working on right now is simply to login to the web service and get a list of all the cancelled invoices As of now, I'm able to get past the

How do I set the character set using XMLHttp Object for a POST in classic ASP?

浪子不回头ぞ 提交于 2019-12-07 15:46:26
问题 I have to use the XMLHttp object in classic ASP in order to send some data to another server via HTTP from server to server: sURL = SOME_URL Set oXHttp = Server.CreateObject("Msxml2.XMLHTTP") oXHttp.open "POST", sURL, false oXHttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded;charset:ISO-8859-1;" sPost = SOME_FORM_DATA oXHttp.send(sPost) I've been told (by the maintainer of the consuming server) that, depending on whether I use this code from Windows Server 2000 (IIS 5)

How do I set the character set using XMLHttp Object for a POST in classic ASP?

夙愿已清 提交于 2019-12-05 19:57:02
I have to use the XMLHttp object in classic ASP in order to send some data to another server via HTTP from server to server: sURL = SOME_URL Set oXHttp = Server.CreateObject("Msxml2.XMLHTTP") oXHttp.open "POST", sURL, false oXHttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded;charset:ISO-8859-1;" sPost = SOME_FORM_DATA oXHttp.send(sPost) I've been told (by the maintainer of the consuming server) that, depending on whether I use this code from Windows Server 2000 (IIS 5) or Windows Server 2003 (IIS 6), he gets Latin-1 (Windows 2000 Server) or UTF-8 (Windows Server 2003)

How can a ServerXMLHTTP GET request hang?

醉酒当歌 提交于 2019-12-04 15:18:44
I have a VBS that makes a large number of GET requests using a ServerXMLHTTP object: SET xmlhttp = CreateObject("MSXML2.ServerXMLHTTP") xmlhttp.setTimeouts 5000, 5000, 10000, 120000 'ms - resolve, connect, send, receive ... ' Now do the following for lots of different GetURLs: xmlhttp.open "GET", GetURL, false xmlhttp.setRequestHeader "Content-type","text/xml" xmlhttp.setRequestHeader "Accept","text/csv" xmlhttp.send "{}" WScript.Echo "Readystate = " & xmlhttp.readyState & " at " & Now() IF xmlhttp.readyState <> 4 THEN xmlhttp.waitForResponse 1 END IF WScript.Echo "Readystate = " & xmlhttp

IXMLHttpRequest.responseXml is empty, with no parse error, when responseText contains valid Xml

主宰稳场 提交于 2019-12-03 13:52:58
i am fetching some XML from a government web-site : http://www.bankofcanada.ca/stats/assets/rates_rss/noon/en_all.xml i am using the following, fairly simple code: var szUrl: string; http: IXMLHTTPRequest; begin szUrl := 'http://www.bankofcanada.ca/stats/assets/rates_rss/noon/en_all.xml'; http := CoXMLHTTP60.Create; http.open('GET', szUrl, False, '', ''); http.send(EmptyParam); Assert(http.Status = 200); Memo1.Lines.Add('HTTP/1.1 '+IntToStr(http.status)+' '+http.statusText); Memo1.Lines.Add(http.getAllResponseHeaders); Memo1.Lines.Add(http.responseText); i won't show all the body that returns,