Http async: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

    4 May 2024

    • curprev 20:5820:58, 4 May 2024Mortmann talk contribs 426 bytes +426 Created page with "The ::http::geturl command blocks until the operation completes, unless the -command option specifies a callback that is invoked when the HTTP transaction completes. <pre> package require http proc httpCallback {token} { regexp {(?i)<title>([^<>]+)} [http::data $token] -> title http::cleanup $token puts "Title was \"$title\"" } set token [::http::geturl http://netbsd.org -timeout 10000 -command httpCallback] <pre>"