Skip to content
Tcl Source Code View Ticket
Login

View Ticket

::http::quoteString missing

Closed / Invalid99e421d7e2f5ed7b58a26e91ee15947b5f7306feCreated 8 years agoUpdated 6 years ago
Descriptionplain2019-04-19 22:16:26
In the documentation of the http the folowing command is described:
::http::quoteString value
    This procedure does x-url-encoding of string. It takes a single argument and encodes it. 

This command is, however not present:
(WKP) 133 % http::quoteString
invalid command name "http::quoteString"
(WKP) 136 % info proc http::*
::http::ncode ::http::Eof ::http::Event ::http::error ::http::size ::http::code ::http::reset ::http::CopyChunk ::http::init ::http::wait ::http::getTextLine ::http::IsBinaryContentType ::http::config ::http::formatQuery ::http::cleanup ::http::unregister ::http::make-transformation-chunked ::http::CopyDone ::http::CopyStart ::http::Finish ::http::ContentEncoding ::http::mapReply ::http::Connect ::http::Log ::http::data ::http::ProxyRequired ::http::Write ::http::geturl ::http::Connected ::http::CharsetToEncoding ::http::status ::http::register ::http::meta ::http::CloseSocket

In the code I can see that http::quoteString is exported, but there is also a interp alias to ::http::mapReply which may be causing this, since it is not present in global scope:
(WKP) 138 % interp aliases
::tcl::chan::gets ::puts ::tcl::chan::puts exit edit ::pkg::create ::gets ::ls tkcon less more
kjnashplain2020-07-24 18:12:59
You are using http 2.8, as you report and as indicated by [info proc http::*].

The http::quoteString command was added to http 2.9.0 which was released with Tcl 8.6.9.
Log in (anonymous is fine) to add a comment.