Martin Honnen wrote:
Quote:
So in terms of the client side code you do not make a request to the URL
http://www.wikihow.com/feed.rss but rather to some different server that
then fetches the URL?
Yes, as far as I know, from the client side you can only make a request
to the same server as the page (that's the only way I could get it to
work anyway).
The asp script is only on my local server at the moment, so here's the
code:
function loadXML(byval xmlAddress)
dim xmlDoc
'Load the XML
set xmlDoc = CreateObject("Microsoft.XMLDOM")
xmlDoc.async = false
xmlDoc.setProperty "ServerHTTPRequest", true
on error resume next
xmlDoc.load(xmlAddress)
if err 0 then
set loadXML = null
exit function
end if
set loadXML = xmlDoc
end function
dim x
dim address
dim content
address = request.QueryString("url")
if address <"" then
set x = loadXML(address)
if isnull(x) or x.xml = "" then
response.Status = "404 Not Found"
response.End()
else
content = x.xml
end if
end if
response.ContentType = "text/xml"
response.Write(content)
Quote:
Then look into that getXML.asp code and whether it
returns anything different.
The getXML.asp returns the same thing as going to the feed url
directly.
Quote:
Things to check on the client:
>
req.getAllResponseHeaders()
req.responseXML.parseError.errorCode
req.responseXML.parseError.reason
>
Show us the response headers you get. Or post the URL of that getXML.asp
script so that we can check what it returns.
Here's what it returns in IE for the wikihow feed:
X-Powered-By: ASP.NET Content-Length: 6996 Content-Type: text/xml
-1072896760
An invalid character was found in text content.
I have no idea what this means...
Thanks for your help Martin.