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]

set result [ns_httpspost "https://acesso.uol.com.br/login.html"; {} {$qsset}
{multipart/form-data} {} {30} {}]

##


However [ns_httpspost] returns an error  regarding the  command [ns_set
size $qsset] at line 250

[17/Mar/2013:11:42:46][30452.3039562608][-default:10-] Error: POST
http://206.192.23.166:8050/natopia-core/invite/invite-uol?
referred by "http://natopia.iurix.com/natopia-core/invite/invite-emails.html
"
no such set: $qsset
    while executing
"ns_set size $qsset"
    (procedure "ns_httpspost" line 46)
    invoked from within
"ns_httpspost "https://acesso.uol.com.br/login.html"; {} {$qsset}
{multipart/form-data} {} {30} {}"
    invoked from within
"set result [ns_httpspost "https://acesso.uol.com.br/login.html"; {}
{$qsset} {multipart/form-data} {} {30} {}]"
    ("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"

[17/Mar/2013:11:42:46][30452.3039562608][-default:10-] Notice:
https://acesso.uol.com.br/login.html

 $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
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
aolserver-talk mailing list
aolserver-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/aolserver-talk

Reply via email to