Using http package in tcl script, having issues

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Using http package in tcl script, having issues

  • Creator
    Topic
  • #55655
    Jerry Tilsley
    Participant

      All,

      I am using a tcl script to set the httpRequestInfo for a web services connection.  With this, I need to provide a url-encoded string for the http query.  I found that the http package can do this (::http::format).  When doing this:

      Code:

      package require http
      set query [::http::format “UserId=usernamd&Pwd=pwd&data=Value1|Value2|value3″]

      from the command line (Linux) hcitcl I can do the package require and all works well.  If I use this same thing in the tcl script and run it through the testing tool if fails.  Any ideas?

      The error I get from the testing tool is:

      invalid command name “::http::format”

      Jerry

    • The forum ‘Cloverleaf’ is closed to new topics and replies.