开发者

Maintain Http session for get and get operation in Curl TCL

i have created http seesion, using the same http session, i would like to do some get and set operation开发者_运维知识库s. Note : What ever the operation, data is present in XML Format, giving xml file as input. And need to fetch the status. Is it possible using TCL curl.


Look at the "cookie jar" usage examples for curl: http://curl.haxx.se/docs/manpage.html#-c--cookie-jar

You can parse the cookie headers yourself and then store them in TCL variables if you use the -b/--cookie syntax instead, but this seems like more work than necessary. I would only do this if you have to avoid using temporary files. It is generally much easier to exec curl from TCL if you use temporary files for all input and output rather than using open to create channels.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜