p.s. iptryDOM.asp code: <% (at) language=JScript%> <% oXMLdoc = Server .D.OT CreateObject("MSXML2.DOMDocument"); Response.ContentType = "text/xml"; oXMLdoc.loadXML("<msg><txt> "+Request.ServerVariables("REMOTE_ADDR")+" </txt><txt> "+Request.ServerVariables("LOCAL_ADDR")+" </txt><txt> "+Request.ServerVariables("SERVER_NAME")+" </txt></msg>"); Response.Write(oXMLdoc.xml); %>
** get [dynamic] ip address &c.
oHttp = createobject("Microsoft.XmlHttp") cURL = "http://www.hawthorn-cottage.com/iptryDOM.asp" oHttp.Open("POST", cURL, .F.) && Synchronous oHttp.Send("") oX = oHttp.responseXML ?oX.getElementsByTagName('txt').item(0).text && REMOTE = you ?oX.getElementsByTagName('txt').item(1).text && LOCAL = web server ?oX.getElementsByTagName('txt').item(2).text && = web server name ?ohttp.abort CLOSE ALL RELEASE ALL
Andrew Davies MBCS CITP - AndyD 8-)#
**********************************************************************
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager.
This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses.
Please contact internet.administrators@manchester.gov.uk with any queries.
**********************************************************************
©2006 Andy Davies |