K
Ken Ward
Guest
I'm using OpenEdge 11.2, and I'm looking for a way to do https requests that doesn't use the MSXML2.XMLHTTP ActiveX object. Sample Text: DEF VAR client AS COM-HANDLE NO-UNDO. DEF VAR vBody AS CHARACTER NO-UNDO. vBody = "ParmList=UN~~*******|PSWD~~************|" + "TERMS~~Y|METHOD~~ProcessTranx|TRANXTYPE~~Sale|" + "AMOUNT~~5.00|CC~~****************|" + "EXPMNTH~~03|EXPYR~~2022|". CREATE "MSXML2.XMLHTTP" client. client:OPEN("POST", " paytrace.com/.../default.pay" , FALSE). client:SetRequestHeader("Content-Type", "application/x-www-form-urlencoded"). client:Send(vBody). MESSAGE client:ResponseText VIEW-AS ALERT-BOX. RELEASE OBJECT client. Whenever I run this code, I get the error: Error occurred while accessing component property/method: Send. The system cannot locate the resource specified. Error Code: 0x80020009 D:\dvl\tmp\p50651_cc_QuickTest.cmp (5890) If I send the same request using a program like Postman or sites like hurl.it, it works fine. To make it worse, certain other programs in our system use code just like this and they work fine as well.
Continue reading...
Continue reading...