Is it possible and how can you send a socket to web address http://www.example.com/viewforum.php?=XXXX and see if the forum does exist or not?

The text in question would be

"The forum you selected does not exist."

and loop from 1 to maximum socket opening at once weather it be 1 to 10000 or timer in between.

so again im trying to open a forum and see if it exist and hoping it to display a return like this

XXXX returned true
XXXX returned false
XXXX returned false

Where XXX is the forum address from 1 to 20000 but of course i dont need 20000 to be looped i just need to know how can I relay the info back to me if its true or not and loop my sockets without congesting the DNS.

Any feedback would help theres tons of forums out there im just wondering because accidentaly I went into one forum iv isit frequently i manually typed it out and i put in one wrong digit and found a hidden forum

Id like a MIRC script to check if possible instead of manually going from 1 to 20000


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }