Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: POST

From: tim:johnsons-web at: 29-Jun-2003 8:38

* Marc Meurrens <[rebol--meurrens--org]> [030629 02:47]:
> At 19:13 28/06/2003 +0200, you wrote: > >Saturday, June 28, 2003, 12:11:50 AM, Carl wrote: > >> 2. We switch on POST and GET to allow a third case: NONE. This is > >> very handy for local debugging > > > >yes it is indeed. but as a sidenote, it is perfectly legal to have > >both, a query string and post data (thru e.g. a POST to > >"/my/script.cgi?n1=v1"). > > > > Andreas mailto:[andreas--bolka--gmx--net]
This is very interesting, I've tried this in the past, with no success, but I didn't use the enctype. BTW: I've used pathinfo extensively in the past for config values. It's never let me down. IOWS http://rebol.mksa.net/make-cgi/cgi.reb/mammals/cats/tabby pathinfo yields ['mammals' 'cats' 'tabby'] data structure depending on the parsing method of course. ~tj~
> a) MIXING 'post AND query-string > > Yes indeed. > There is an example of "mixing" 'post method and query-string at URL > http://rebol.mksa.net/make-cgi/form-mix.php > the output of the action script "cgi.reb" of this form > probes a REBOL object showing how mixed entries are processed by make-cgi.r > > Can be usefull to quickly add some config values thru the URL of the form's > action, etc. > without the need for hidden fields in the form it self. > > As another sidenote, mind that your query-string and/or posted data > do NOT need to be a set of well formed form fields values. > Instead, your script on your server may decide to retrieve and to proceed > it-self the data as in > http://rebol.mksa.net/make-cgi/cgi.reb?this+is+your+query+string+in+your+proprietary+format > > b) LOCAL DEBUGGING > > See the refinements /test-query-string , /test-posted-data and > /test-multipart > added in the brand new version 0.1.2 of make-cgi.r at > http://rebol.mksa.net/make-cgi/ > (or read the intensively commented source code, near the end) > > Regards, > > </marc> > > Prof. Ir Marc Meurrens, Brussels (be) > TEL: +32 (0)2 537 2812 > FAX: +32 (0)2 537 7645 > EMAIL: [marc--meurrens--org] > URL: http://www.meurrens.org/ > REB: http://rebol.mksa.net/ > PGPKEY: http://www.meurrens.org/pgp/ > Please don't mail me attached files, instead, use my 'exchange area' : > EXCHANGE AREA: http://www.meurrens.org/exchange/ > (HTTP/FTP upload/download of temporary/persistent files) > > -- > To unsubscribe from this list, please send an email to > [rebol-request--rebol--com] with "unsubscribe" in the > subject, without the quotes.
-- Tim Johnson <[tim--johnsons-web--com]> http://www.alaska-internet-solutions.com http://www.johnsons-web.com