Hi there,
I created the code bellow that calls httpspost to authenticates against a https url with a few arguments (user, password, skin, dest). In order to pass arguments through via post they must be within a set structure.
*** I believe I didn't even need the first line becasue ns_getform already returns the identical set structure needed as argument for qsset on httpspost. However I added it just to stay o the right side. The TCL script is bellow.
## script.tcl
ns_set create qsset [ns_getform]
##
However [ns_httpspost] returns an error regarding the command [ns_set size $qsset] at line 250
no such set: $qsset
while executing
"ns_set size $qsset"
(procedure "ns_httpspost" line 46)
invoked from within
invoked from within
("uplevel" body line 38)
invoked from within
"uplevel {
ad_page_contract {}
I went to ns_httpspost source code and I placed a ns_log within it.
ns_log Notice "$url \n $rqset \n $qsset \n $type "
Curiously It doesn't show the content of qsset but its label "$qsset"
$qsset
multipart/form-data
[17/Mar/2013:11:42:46][30452.
3039562608][-default:10-] Warn...
Does it have any relation with the error?
How do I make qsset variable to be recognizable within the procedure ns_httpspost
Cheers,
Iuri