T
Tuxedo
This may be a vague question but which perl network tools or procedures are
good to determine if a hostname or IP exist and that is suitable for a cgi
request that allows user-input of any URL string?
An HTTP status code may return any response, such as 200, 404 or something
else. Whatever the response may be, as long as there is an actual response,
DNS record or server existing, a subroutine should return true. If however
the hostname or IP is non-existing, or if the user input has a wrong
syntax, the perl code should return false.
Presumably countless modules and procedures exist that do this and more.
Any ideas for good solutions would be much appreciated.
Many thanks,
Tuxedo
good to determine if a hostname or IP exist and that is suitable for a cgi
request that allows user-input of any URL string?
An HTTP status code may return any response, such as 200, 404 or something
else. Whatever the response may be, as long as there is an actual response,
DNS record or server existing, a subroutine should return true. If however
the hostname or IP is non-existing, or if the user input has a wrong
syntax, the perl code should return false.
Presumably countless modules and procedures exist that do this and more.
Any ideas for good solutions would be much appreciated.
Many thanks,
Tuxedo