
Hi DevNewz Readers,
If your planning on using XML, having a good working knowlege of
XMLHttp is a good idea. This weeks issue, by the high-class
developer, Robbe Morris shows us an excellent exampel of WhoIs
query with XMLHttp.
Best Wishes,
Pete

Here's a quick example of how to use the XMLHttp object to perform
a WhoIs query. You can then write your own functiosn to strip out
the desired content in the page.
I've added our standard code to prevent ASP page caching for
your convenience.
<%
Response.Buffer = True
Response.AddHeader "cache-control", "private"
Response.AddHeader "pragma", "no-cache"
Response.ExpiresAbsolute = #January 1, 1990 00:00:01#
Response.Expires=0 <
/FONT>
Function
WhoIS(sDomain)
Dim oXMLHttp
on error
resume next
Set oXMLHttp=Server.CreateObject
("MSXML2.XMLHTTP")
oXMLHttp.open "GET", "http://www.networksolutions.com/cgi-bin/whois
/whois/?STRING=" & Trim(sDomain), false
<
/FONT>
oXMLHttp.send
if oXMLHttp.status = 200 Then
WhoIS =
oXMLHttp.responseText
else
WhoIs = "0"
end if
Set oXMLHttp
= Nothing < /FONT >
End Function
response.write WhoIs("eggheadcafe.com")
%>
|
Click Here!
|
Get Certified. Get
Ahead.
There's a whole new game out there, it's called
internet technology. Get the skills you need to
compete.
Oracle Certified Professional Program.
|
|
"The Oracle Certification Program is dedicated to ensuring you have
the right skills for success in today's fast paced, internet world."
Click
here for Details
|
ABOUT THE AUTHOR: Robbe Morris
Robbe is currently a software engineer for Gartner in Maitland,
Florida. He also owns and operates his own web hosting and development
corporation RobbeMorris.com Inc. ( http://www.robbemorris.com
) based in DeBary, Florida which sponsors eggheadcafe.com. Robbe
has extensive experience with web technologies, CTI based applications,
system administration, and data modeling.
We at the Editorial Team would like to thank all our readers
for reading DevNewz. We hope you find this information useful.
Sincerely,
Peter Thiruselvam
mailto:comments@DevNewz.com
Editor
|