01-18-2007 03:21 PM - edited 03-13-2019 03:52 PM
I'm developing a tcl IVR application which requires an http connection to a web server. From the scarce information I have found on the web, the package to do this is httpios. I can't seem to find any documentation regarding this package and I have already tried the standard http 2.5 package instructions:
and
but the interpreter responds with:
invalid command name "::http::geturl".
I would appreciate any help.
Thanks,
Mike
03-14-2007 01:28 PM
Hi
I was wondering if you managed to find an answer to this as i wish to do the same.
I want to get the contents of an http page in an IVR app on an IOS gateway.
Thanks
Andy
03-16-2007 01:56 PM
As a matter of fact I did. I didn't find any documentation so I don't have anything solid to pass to you. But, the important thing to know is that there is an equivalent object to work over ios. Instead of using http::geturl use httpios::geturl. It behaves pretty much in the same way as http object. Good Luck.
PS. Here's an example of how I used it and it works fine:
::httpios::geturl "$stParam(EndCallURL)?UniqueCallID=$stParam(UniqueCallID)" -command getEndCallResponse -timeout
you must implement the response listener as follows:
proc getEndCallResponse {token} {
global stParam
puts "callback Status=[::httpios::status $token],
if {[string compare [::httpios::status $token] ok]} {
set resp [::httpios::data $token]
puts "Response: $resp"
}
}
03-16-2007 03:56 PM
Thats great it worked first time
Thanks for that. I cannot beleive there is no documentation for this anywhere.
Andy
01-07-2011 03:40 AM
Hello,
I'm still not able to use the http::geturl function. Not even httpios:geturl workgs.
the package is installed builtin.
Can you help me?
met
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide