[AOLSERVER] POSTing from TCL

2001-04-27 Thread Steve Manning
Is it possible to create a POST method directly from a TCL procedure. I need to return data to an ADP page to repopulate a form. I was using ns_returnredirect but I now have a textarea on the form and I don't think the GET method can handle long strings that this could require nor does it look ve

Re: [AOLSERVER] POSTing from TCL

2001-04-27 Thread Jerry Asher
Steve Manning writes: > Is it possible to create a POST method directly from a > TCL procedure. I need to return data to an ADP page to > repopulate a form. I think util_httppost might help. You can get that from OpenACS at sourceforge: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/acs-pg/acs-

Re: [AOLSERVER] POSTing from TCL

2001-04-29 Thread Steve Manning
Thanks for that Jerry. I've had a look but unfortunately its not quite what I'm after as I need to redirect the browser to the adp page. Perhaps if I explain the problem a bit better it might help. I have a complex form on an ADP page which POSTS to a TCL proc to validate the form data. If the da

Re: [AOLSERVER] POSTing from TCL

2001-04-29 Thread Mike Hoegeman
i'm not sure this will do it for you, but here's a chunk of code that will allow you to post. look at the 'Post' proc in paticular apologies for the attachment, but i have no easy way of providing this via ftp or whatever.. it's not all that big (~300 lines) -mike

Re: [AOLSERVER] POSTing from TCL

2001-04-29 Thread Boris Georgiev
You forgot the attachment : Boris Georgiev - Original Message - From: "Mike Hoegeman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, April 29, 2001 10:43 PM Subject: Re: [AOLSERVER] POSTing from TCL > i'm not sure this will do it for you

Re: [AOLSERVER] POSTing from TCL

2001-04-29 Thread Mike Hoegeman
Boris Georgiev wrote: > > You forgot the attachment : > > Boris Georgiev > > - Original Message - > From: "Mike Hoegeman" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Sunday, April 29, 2001 10:43 PM > Subject: Re: [AOLSERV

Re: [AOLSERVER] POSTing from TCL

2001-04-29 Thread Mike Hoegeman
ge - > > From: "Mike Hoegeman" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Sunday, April 29, 2001 10:43 PM > > Subject: Re: [AOLSERVER] POSTing from TCL > > > > > i'm not sure this will do it for you, but > > >

Re: [AOLSERVER] POSTing from TCL

2001-04-29 Thread Jerry Asher
>The problem here is that the ns_returnredirect tries to use a GET method to >return the value of the notes textarea which isn't very reliable. I would >like to replace the ns_returnredirect in the tcl proc with a post to the >adp page. If anyone has a different approach to this problem I would >a

Re: [AOLSERVER] POSTing from TCL

2001-04-29 Thread Dossy
On 2001.04.29, Steve Manning <[EMAIL PROTECTED]> wrote: > The problem here is that the ns_returnredirect tries to use a GET method to > return the value of the notes textarea which isn't very reliable. I would > like to replace the ns_returnredirect in the tcl proc with a post to the > adp page. I

Re: [AOLSERVER] POSTing from TCL

2001-04-29 Thread Steve Manning
Thanks Jerry, At 29/04/01 14:26, you wrote: >Steve, > >I think what you are asking is pretty much outlawed in RFC 2616, the >HTTP/1.1 >specification. >http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3.3 > >(Although it also looks as though the AOLserver is not up to spec either: >ns

Re: [AOLSERVER] POSTing from TCL

2001-04-29 Thread Steve Manning
t; > > > - Original Message - > > > From: "Mike Hoegeman" <[EMAIL PROTECTED]> > > > To: <[EMAIL PROTECTED]> > > > Sent: Sunday, April 29, 2001 10:43 PM > > > Subject: Re: [AOLSERVER] POSTing from TCL > > > > >

Re: [AOLSERVER] POSTing from TCL

2001-04-29 Thread Dossy
On 2001.04.29, Jerry Asher <[EMAIL PROTECTED]> wrote: > I'm not sure why you believe the GET is unreliable, but an additional > option is to communicate the parameters to be reused as the value of a cookie. Both have byte size limitations which are much smaller than the limit for POST'ed data. T

Re: [AOLSERVER] POSTing from TCL

2001-04-29 Thread carl garland
One option that you could implement would be to make the post focus go to the same page and add in a hidden form var or use referer to check if coming from a submit / POST action. At the beginning of the page if it is reentrant than go thru validation routine and either: 1) Repopulate with valu

Re: [AOLSERVER] POSTing from TCL

2001-04-29 Thread Mike Hoegeman
Dossy wrote: > You can't issue a URL redirect and instruct the browser to access > the URL using the POST method. > > You're better off having your form ADP page submit back to itself, > and in the form ADP page, check for a hidden form field (like "action") > and make sure it equals something se

Re: [AOLSERVER] POSTing from TCL

2001-04-29 Thread Steve Manning
Dossy, Now why didn't I think of that. It sounds like the answer I'm looking for and I get to lose the extra tcl file having moved all the validation code into the ADP page! I'd buy you a pint but were going metric. Steve At 29/04/01 18:20, you wrote: >On 2001.04.29, Steve Manning <[E

Re: [AOLSERVER] POSTing from TCL

2001-04-29 Thread Jim Wilcoxson
Using the Referer: header is dangerous - won't work for customers using a privacy filter. -Jim > > One option that you could implement would be to make the post focus > go to the same page and add in a hidden form var or use referer to > check if coming from a submit / POST action. At the begin

Re: [AOLSERVER] POSTing from TCL

2001-04-29 Thread Jerry Asher
>So how do people do it? Anyone? > >Steve If you want to do this in a cookie-less fashion, I think you're going to have to go for a session based solution, where the session id is encoded either in the path or query string of the URI. Either should be relatively easy to support in AOLserver and

Re: [AOLSERVER] POSTing from TCL

2001-04-29 Thread Dossy
On 2001.04.29, Steve Manning <[EMAIL PROTECTED]> wrote: > Dossy, > > Now why didn't I think of that. It sounds like the answer I'm looking for > and I get to lose the extra tcl file having moved all the validation code > into the ADP page! The only argument against the method I suggested was that

Re: [AOLSERVER] POSTing from TCL

2001-04-29 Thread Jerry Asher
At 03:33 PM 4/29/01 -0700, you wrote: >Dossy wrote: > > > You can't issue a URL redirect and instruct the browser to access > > the URL using the POST method. > > > > You're better off having your form ADP page submit back to itself, > > and in the form ADP page, check for a hidden form field (lik

Re: [AOLSERVER] POSTing from TCL

2001-04-29 Thread Tom Jackson
Jerry, ACS (or aD) did develop an always forward solution. Here is my local copy: http://multi.zmbh.com:8500/doc/acs-templating/api/form.html Unfortunately it is so poorly documented that you end up having to read the tcl source to figure out what you can do with it. Essentially the solution is

Re: [AOLSERVER] POSTing from TCL

2001-04-29 Thread Jerry Asher
At 03:31 PM 4/29/01 -0700, you wrote: >Jerry, > >ACS (or aD) did develop an always forward solution. >Here is my local copy: >http://multi.zmbh.com:8500/doc/acs-templating/api/form.html > >Unfortunately it is so poorly documented that you end up having to read >the >tcl source to figure out what y

Re: [AOLSERVER] POSTing from TCL

2001-04-29 Thread Tom Jackson
Jerry Asher wrote: > So is this an ACS 4 thing, or is there a way to get the functionality in a > separate module? I think it was developed separately from ACS4. It does not require a database, so I think the whole thing is a tcl module. It is under /web/servername/packages/acs-templating/. I h

Re: [AOLSERVER] POSTing from TCL

2001-05-01 Thread macky
.. note if you are using adp as initial page you can use ns_adp_parse to get html code... hope this helps... - Original Message - From: Steve Manning To: [EMAIL PROTECTED] Sent: Saturday, April 28, 2001 7:20 AM Subject: [AOLSERVER] POSTing from TCL Is it possible to cr