I have a very simple xmlhttp snippet that i need to convert to php. I have absolutly 0 experience in php, so i was hoping someone could lend me a hand.
Here is the VBScript code:
dim xmlhttp
set xmlhttp = server.Createobject("MSXML2.ServerXMLHTTP")
xmlhttp.Open "GET","http://myurl.com/return.aspx?d=" & Request.QueryString("d"), false
xmlhttp.send
Response.ContentType = "text/xml;charset=windows-1252"
Response.Write xmlhttp.responsetext
Set xmlhttp = nothing
I think you’re looking for something like
for CURL alternative: