If you want accurate and non-cached whois results, you would really want to avoid http.
A realtime whois query will go by TCP to port 43 of the whois server. For example, you can test this in telnet for a .com thus:
MacBook:~ dalehubbard$ telnet rs.internic.net 43
Trying 198.41.0.6...
Connected to rs.internic.net.
Escape character is '^]'.
droopydrawers.com
Whois Server Version 1.3
Domain names in the .com and .net domains can now be registered
with many different competing registrars. Go to
http://www.internic.net
for detailed information.
Domain Name: DROOPYDRAWERS.COM
Registrar: MONIKER ONLINE SERVICES, INC.
Whois Server: whois.moniker.com
Referral URL:
http://www.moniker.com/whois.html
Name Server: NS1.VORTALS.COM
Name Server: NS2.VORTALS.COM
Name Server: NS3.VORTALS.COM
Status: clientTransferProhibited
Status: clientUpdateProhibited
Status: clientDeleteProhibited
Updated Date: 12-jun-2007
Creation Date: 12-jun-2006
Expiration Date: 12-jun-2008
Notice the above example that we're querying the top level whois server which then gives a secondary referral to whois.moniker.com.
Then:
MacBook:~ dalehubbard$ telnet whois.moniker.com 43
Trying 64.49.213.249...
Connected to whois.moniker.com.
Escape character is '^]'.
droopydrawers.com
Moniker.Com Whois Server Version 2.1
Domain Name: DROOPYDRAWERS.COM
Registrant [543740]:
Moniker Privacy Services
20 SW 27th Ave.
Suite 201
Pompano Beach
FL
33069
US
Administrative Contact [543740]:
Moniker Privacy Services
[email protected]
Moniker Privacy Services
20 SW 27th Ave.
Suite 201
Pompano Beach
FL
33069
US
Phone: +1.9549848445
Fax: +1.9549699155
Billing Contact [543740]:
Moniker Privacy Services
[email protected]
Moniker Privacy Services
20 SW 27th Ave.
Suite 201
Pompano Beach
FL
33069
US
Phone: +1.9549848445
Fax: +1.9549699155
Technical Contact [543740]:
Moniker Privacy Services
[email protected]
Moniker Privacy Services
20 SW 27th Ave.
Suite 201
Pompano Beach
FL
33069
US
Phone: +1.9549848445
Fax: +1.9549699155
Domain servers in listed order:
NS1.VORTALS.COM 38.98.7.49
NS2.VORTALS.COM 65.255.33.217
NS3.VORTALS.COM 66.172.49.190
Record created on: 2006-06-12 19:15:45.0
Database last updated on: 2007-06-12 14:06:06.777
Domain Expires on: 2008-06-12 19:15:46.0
It's quite a bit of effort just for a simple whois, but you get a definitive answer. Do note that sometimes the secondary whois servers will not give you a reply.