troubleshooting Question

VB script on IIS to php on Apache

Avatar of itdeptneci
itdeptneci asked on
Apache Web ServerMicrosoft IIS Web Server
5 Comments2 Solutions585 ViewsLast Modified:
Does anybody have experience with PHP and VB. I've had a request for this small bit of code to be run on an Apache server. (Attached file shows full asp file)

            DT700Location = Cstr(.QueryString("DT700Location"))
            'ServerPageToFetch = Cstr(.QueryString("ServerPageToFetch"))
            ServerPageToFetch = "http://192.168.1.115/EUSDK/default.xml"
            
            'Test with fixed value DT700Location = "http://192.168.1.63:5555/cgi/Push.cgi"
            
            strPOSTxml ="<DtermIPPush><PushItem type=""0"" URL=""" & ServerPageToFetch & """/></DtermIPPush>"

            dim xmlhttp
            set xmlhttp = server.Createobject("MSXML2.ServerXMLHTTP")
            xmlhttp.Open "POST", DT700Location, false
            xmlhttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
            xmlhttp.send strPOSTxml
Push04.asp.txt
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 2 Answers and 5 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros