Forum OpenACS Development: Re: Invalid command name "ns_httpsget"

Collapse
Posted by Iuri Sampaio on
Now, I have the same error but I'm lost on applying the same solutions but on NavServer.

Any help will be appreciated

Collapse
Posted by Gustaf Neumann on
If you have OpenACS 5.8.1: have you tried util::http::get?

https://openacs.org/api-doc/proc-view?proc=util%3a%3ahttp%3a%3aget&source_p=1

Collapse
Posted by Andrew Piskorski on
Iuri, the client-side ns_httpsget command is part of nsopenssl. Naviserver does not use seem to use nsopenssl at all, instead it has the nsssl module.

Unlike nsopenssl, the nsssl module does not include any extra Tcl code, but it does appear to implement client-side support (in C) in its ns_ssl Tcl command. And it looks as if OpenACS does use ns_ssl in its util::http::* commands, so Gustaf is of course correct that you should try that stuff first. (Did it work for you?)

Btw, if you need client-side cookie support, way back in 2003 tclwebtest had it. It was fairly easy to copy the relevant small amount of Tcl code and modify it to work in AOLserver and OpenACS. With that sort of cookie support, I was able to e.g. make AOLserver log into an OpenACS site. Maybe there are better solutions by now.

Collapse
Posted by Gustaf Neumann on
Small addition: in case, nsssl is NOT configured, util::http::get uses curl. -gn