Classic ASP XMLUsing ASP 3 and XML. See also the XML category for more XML discussions not relating to ASP. NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Classic ASP XML section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Is there any way I can get the actual URL that is attempting to post XML to a page I created. I use the Microsoft.XMLDOM object to load and parse the document but I want to run through a url verification first because different URL's need to take different paths. How can I do this?
Request.ServerVariables("HTTP_REFERER") should work if you are posting the xml client-side, is this what you are doing, or are you posting server-side?
I have many different affiliates that are posting the XML to one page in a form value named XML_Post. And I simply load that xml into the parser like so:
Dim bLoaded
Dim xmlObj
set xmlObj = Server.CreateObject("Microsoft.XMLDOM")
xmlObj.async = False
bLoaded = xmlObj.loadxml(XML_post)
If bLoaded = True Then ' It loaded and validated ok, continue..
set ping_id = xmlObj.selectSingleNode("//XML_doc/session_id")
'etc
'etc
However I want to be able to check the URL first as different URL's will be posting some different nodes in their document (amongst other functions I will need to call)