Forum OpenACS Development: Invalid command name "ns_httpsget"

Request notifications

Collapse
Posted by Iuri Sampaio on
Hi there,

I got an error regarding ns_openssl library.

Notice: invalid command name "ns_httpsget"

Searching for old results, apparently my ns_openssl installation is incomplete.
http://openacs.org/bugtracker/openacs/bug?bug_number=991

Unfortunately, the link with the instructions is broken
http://www.scottg.net/webtools/aolserver/modules/nsopenssl/installation

I installed everything, AOLServer and its components through apt-get

The machine runs OS Debian GNU/Linux 6.0 \n \l, AolServer 4 and aolserver4-nsopenssl version 3.0beta26-4

http://packages.qa.debian.org/a/aolserver4-nsopenssl.html

Does anyone, have a solution for that?
(besides having to install aolserver-* again from source)

Collapse
Posted by Benjamin Brink on
Would the tcl/openssl alternate work?

http://sourceforge.net/projects/tls/

This may be more actively maintained, and might be a work around for the bug existing in nsopenssl mentioned here:

http://www.mail-archive.com/aolserver@listserv.aol.com/msg07706.html

Collapse
Posted by Steve Manning on
Do you have the file https.tcl in your aolserver/modules/tcl dir? It is that library which provides the ns_https... commands.

- Steve
Collapse
Posted by Steve Manning on
If you need the file I've stuck a copy here http://dl.dropbox.com/u/1604704/https.tcl

Just save it as .../aolserver/modules/tcl/https.tcl, do a restart of aols and you should be good to go.

- Steve

Collapse
Posted by Iuri Sampaio on
Thanks Benjamin and Steve for the quick feedback

I downloaded https.tcl and place within aolserver's directory.
The procs work now.

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?

http://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