util::get_http_status (public)

 util::get_http_status [ -url url ] [ -use_get_p use_get_p ] \
    [ -timeout timeout ]

Defined in packages/acs-tcl/tcl/http-client-procs.tcl

Switches:
-url
(optional)
-use_get_p
(defaults to "1") (optional)
-timeout
(defaults to "30") (optional)
Returns:
the HTTP status code, e.g., 200 for a normal response or 500 for an error, of a URL. By default this uses the GET method instead of HEAD since not all servers will respond properly to a HEAD request even when the URL is perfectly valid. Note that this means that the server may be sucking down a lot of bits that it doesn't need.

Partial Call Graph (max 5 caller/called nodes):
%3 util::link_responding_p util::link_responding_p (public) util::get_http_status util::get_http_status util::link_responding_p->util::get_http_status util::http::request util::http::request (private) util::get_http_status->util::http::request

Testcases:
No testcase defined.
[ show source ]
Show another procedure: