Menu

#135 Adding http::gethdr command

closed-invalid
5
2001-11-07
2001-11-07
No

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.

Discussion

  • Andreas Kupries

    Andreas Kupries - 2001-11-07

    Patch, implementation, unified diff

     
  • Andreas Kupries

    Andreas Kupries - 2001-11-07

    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

     
  • Jeffrey Hobbs

    Jeffrey Hobbs - 2001-11-07

    Logged In: YES
    user_id=72656

    This is already available via http::geturl $url -validate 1.

     
  • Jeffrey Hobbs

    Jeffrey Hobbs - 2001-11-07
    • status: open --> closed-invalid
     
  • Christopher Nelson

    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'.

     
  • Andreas Kupries

    Andreas Kupries - 2001-11-07

    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.

     
MongoDB Logo MongoDB