cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1482
Views
5
Helpful
4
Replies

tcl IVR http Package httpios

mjames
Level 1
Level 1

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:

::http::geturl

and

::http::data

but the interpreter responds with:

invalid command name "::http::geturl".

I would appreciate any help.

Thanks,

Mike

4 Replies 4

gilbera
Level 1
Level 1

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

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"

}

}

Thats great it worked first time

Thanks for that. I cannot beleive there is no documentation for this anywhere.

Andy

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