Ulf Dittmer wrote:The usual way to check whether a particular port is open on a particular host is something like this. A 2 second timeout should be sufficient.
But the more pertinent question is: should that port be open? Have you read somewhere that that server runs a public Whois service?
You should definitely browse through the CodeBarn, it contains a lot of useful code.
it is not working for anyother site other than you mentioned and is returning HTTP/1.0 302 Found
Location: http://www.internic.net/osborne.com Server: BigIP
for every site ..i menz that except the site name is variably appended nothing new like server etc changes.....y so???
I don't understand what you're asking; can you rephrase it while also giving more detail? You're quoting my post about checking whether a port is open, but what you wrote seems about Whois...? But Whois has nothing to do with HTTP, so I'm confused.
So simple...i wanna know that what if i change the string to somrthing esle ...what will be the output after the socket is established???
well it be the same as in the beginning posts on this page ???
hoping you will get it now
But let's take a step back - this topic was about making a Whois query, and about checking whether a port is open. Which of these two are you asking about? If it's about neither, then you should start new topic. If it actually is about one of these, then tell us which one, and what specifically you are trying to do.