Domain availability checker

Discussion in 'C#' started by haan86, Sep 10, 2009.

  1. #1
    hi..
    I am doing domain name checker..
    Below is the code of tutorial I get from internet.
    But the result always return not available...
    Who know what is the problems?

    Thanks you...

    <% Dim strURL: strURL = "http://www.7788.com" 
    Dim objXMLConn, strResponse
    
    Set objXMLConn = Server.CreateObject("Microsoft.XMLHTTP") 
    objXMLConn.Open "get", strURL, False
    
    '| Compensate for errors with this line.
    On Error Resume Next
    GetConnection.Send
    
    strResponse = objXMLConn.getResponseHeader("Date")
    
    If Not IsEmpty(strResponse) Then
       Response.write(strURL & " is available") 
    Else
       Response.write(strURL & " is not available")
    End If 
    
    Set objXMLConn = Nothing %>
    Code (markup):
    Between, to add a domain availability checker to my site is that very hard and required high skill of programming? Because I am fresh in programing, still under training..
    Thanks for reply... :)
     
    haan86, Sep 10, 2009 IP
  2. ccoonen

    ccoonen Well-Known Member

    Messages:
    1,606
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    160
    #2
    You don't want to see if you can get the url, you want to parse records to see if that domain has been registered or not correct? So - you will be doing a screen scrape of data from... maybe register.com's domain checker page? thats the route i'd go.
     
    ccoonen, Sep 10, 2009 IP
  3. MaceWin

    MaceWin Peon

    Messages:
    38
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You could use the Namecheap API, they let you do availability checks and have demo code for how to use it.
     
    MaceWin, Sep 26, 2009 IP