Hi

> i am wondering about what is the best way to marry the two: i'd like to 
> keep the encrypted data from the websh environment, but need to gather the 
> ID parameter from the billing server's reply. i wanted to essentially chain 
> the two or embed the websh data like the SIGNATURE, but this would require 
> pre-processing the querystring before it is dispatched under websh. from 
> what i've seen from the sources, the url is not available to the tcl 
> environment for manipulation before dispatching. i would either add this or 
> process in C, but there may be a better way...??

You can easily access the query string before dispatching as follows:

set query [web::request QUERY_STRING]
# do some manipulation on $query
web::dispatch -querystring $query

This allows you for example to extract the websh part of the original
query string and only pass this part to web::dispatch or pass both
parts separately.

Something like:

% set query "a=b&c=d&e=[web::encrypt "g h i k"]"
a=b&c=d&e=XDdCg9Ouu7bh9ZmT
% web::dispatch -querystring $query -cmd "" -postdata ""
% foreach p [lsort [web::param -names]] {puts "$p: '[web::param $p]'"}
a: 'b'
c: 'd'
e: 'XDdCg9Ouu7bh9ZmT'
% web::dispatch -querystring [web::param e] -cmd "" -postdata ""
% foreach p [lsort [web::param -names]] {puts "$p: '[web::param $p]'"}
a: 'b'
c: 'd'
e: 'XDdCg9Ouu7bh9ZmT'
g: 'h'
i: 'k'
%

I hope you get the idea

Regards
Ronnie
-- 
10 Jahre Netcetera - die Zukunft im Visier

Ronnie Brunner | [EMAIL PROTECTED]
phone +41 (0)44 247 79 79 | fax +41 (0)44 247 70 75
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to