Hans
unread,May 17, 2013, 3:57:06 PM5/17/13You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Hi,
I'm learning to use http package.
I already have a web service running on my server, now I need tcl http client to setup connection to server, then query server, get response, again and again, finally, close the connection.
The all examples I found from internet is one query per connection. From manual:
The ::http::geturl command blocks until the operation completes, unless the -command option specifies a callback that is invoked when the HTTP transaction completes.
I don't know what's the real meaning of "operation completes" or "transaction completes". per network sniffer, I noticed the command quit only after server side close the tcp connection.
what I want to do is something like:
::http::config -proxyhost 1.2.3.4 -proxyport 80 -useragent httppost
set token1 [::http::geturl $url -query $data1 -channel $out -keepalive 1 ]
set token2 [::http::geturl $url -query $data2 -channel $out -keepalive 1 ]
set token3 [::http::geturl $url -query $data3 -channel $out -keepalive 1 ]
set token4 [::http::geturl $url -query $data4 -channel $out -keepalive 1 ]
::http::reset token4 >>>>>>close tcp connection.
Can anybody give me an idea about how to do this? thanks a lot!