The enclosed patch implements a new command "gethdr".
In contrast to "geturl" it only does GET requests and
only retrieves the headers sent by the server. It does
not retrieve the contents of the page.
Now that Jeff pointed me to this I read the
following in the documentation, which is
pretty clear to me.
-validate boolean
If boolean is non-zero, then ::http::geturl does
an HTTP HEAD request. This request returns meta
information about the URL, but the contents are
not returned. The meta information is available
in the state(meta) variable after the transaction.
See the STATE ARRAY section for details.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Patch, implementation, unified diff
Logged In: YES
user_id=75003
The patch currently does not contain documentation nor does
it extend the testsuite. This will follow.
Also note FR http://sourceforge.net/tracker/index.php?
func=detail&aid=443195&group_id=10894&atid=360894
Logged In: YES
user_id=72656
This is already available via http::geturl $url -validate 1.
Logged In: YES
user_id=107514
It's not clear to _me_ that -validate 1 will _not_ get the page. That seems to be a difference between the
current implementation and Andreas'.
Logged In: YES
user_id=75003
Now that Jeff pointed me to this I read the
following in the documentation, which is
pretty clear to me.
-validate boolean
If boolean is non-zero, then ::http::geturl does
an HTTP HEAD request. This request returns meta
information about the URL, but the contents are
not returned. The meta information is available
in the state(meta) variable after the transaction.
See the STATE ARRAY section for details.