Ticket UUID: | 479246 | |||
Title: | Adding http::gethdr command | |||
Type: | Patch | Version: | None | |
Submitter: | andreas_kupries | Created on: | 2001-11-07 19:33:18 | |
Subsystem: | 29. http Package | Assigned To: | hobbs | |
Priority: | 5 Medium | Severity: | ||
Status: | Closed | Last Modified: | 2001-11-08 02:58:13 | |
Resolution: | Invalid | Closed By: | andreas_kupries | |
Closed on: | 2001-11-07 19:58:13 | |||
Description: |
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. | |||
User Comments: |
andreas_kupries added on 2001-11-08 02:58:13:
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. chris_nelson added on 2001-11-08 02:50:29: 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'. hobbs added on 2001-11-08 02:40:04: Logged In: YES user_id=72656 This is already available via http::geturl $url -validate 1. andreas_kupries added on 2001-11-08 02:34:56: 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 andreas_kupries added on 2001-11-08 02:33:21: File Added - 12985: http.diff.3 |
Attachments:
- http.diff.3 [download] added by andreas_kupries on 2001-11-08 02:33:20. [details]