HTTP & tcl

Cameron Laird claird at lairds.us
Fri Feb 17 17:08:03 EST 2006


In article <1140079405.290586.298270 at g44g2000cwa.googlegroups.com>,
Fuzzyman <fuzzyman at gmail.com> wrote:
>
>alf wrote:
>> Hi
>>
>> I would like to convert the wctpXml-1.3.py program to Tcl (line by
>> line).
>> See http://sourceforge.net/project/showfiles.php?group_id=29217
>> This program sends pages using WCTP.  I know nothing about Python or
>> XML but this program is small and seems straightforward and I am sure
>> that I will be able to figure it out - with a little help ;-)
>> Currently I am stuck in not being able to identify the Tcl equivalent
>> of Python's "putrequest", as in:
>> h = httplib.HTTP("wctp.skytel.com",80)
>> h.putrequest("POST","/wctp")
>>
>
>You'll get more help on Tcl syntax in a Tcl group. :-)
>
>Of the HTTP object, the Python documentation says :
			.
			.
			.
>In other words - you're creating an HTTP connection and request. You'll
>need to find an 'equivalent' library for Tcl and convert the request
>using hte semantics of whatever library you choose.
			.
			.
			.
If you don't immediately see what you're after in <URL:
http://wiki.tcl.tk/http >, post in comp.lang.tcl, and 
we'll straighten this out.



More information about the Python-list mailing list