dunque.. questo è lo script asp:
codice:
<%
response.ContentType="text/xml"
Response.CacheControl = "no-cache"
Response.AddHeader "Pragma", "no-cache"
Response.Expires = -1
Response.Buffer = TRUE
Urlxml = request("url")
RemoteXML = getHttpFile(Urlxml,"GET" )
response.write(RemoteXML)
function getHttpFile(sUrl, sHTTPType)
Set xml = Server.CreateObject("MSXML2.ServerXMLHTTP")
xml.Open sHTTPType, sUrl, False
xml.Send
getHttpFile = xml.responseText
Set xml = Nothing
end function
%>
e se lo eseguo direttamente dal browser mi riporta pari pari la struttura xml, ed è perfetto.. mentre per php ho trovato solo questo:
codice:
<?php
$dataURL = "http://herald.daoc.it/xml/vortigern/guilds/122.xml";
//note that this will not follow redirects
readfile($dataURL);
?>
ma mi fa vedere il testo tutto di continuo senza tag xml... quindi l'as che ho nel filmato flash non legge niente