unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* guile-www-2.9 (www cgi) form-data loses original order
@ 2005-04-11 23:44 Alan Grover
  0 siblings, 0 replies; only message in thread
From: Alan Grover @ 2005-04-11 23:44 UTC (permalink / raw)


The (www cgi) module parses query-string/form-data parameters but loses 
the order of the name/value pairs.

Module: www cgi
Version: 2.9

Specifically, it reverses the order of the names (and values when a name 
appears more than once). This behavior is not documented (and thus not 
guaranteed).

RFC 1866 appears to be the relevant document:
section 8.2.1: "The fields are listed [by the user agent] in the order 
they appear in the document." Being able to recover this order in a cgi 
program may be desirable.

I would like to see an interface that delivers the key-values in order, 
including duplicates: e.g. ...?bob=1&joe=2&bob=3 should give us 
something like ((bob 1) (joe 2) (bob 3)).

I'm working on a suggested change to (www cgi) that addresses this and 
tolerates names without "=". It should be available within the next 2 days.

-- 
Alan Grover
awgrover@mail.msen.com
+1.734.476.0969


_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-guile


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-04-11 23:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-11 23:44 guile-www-2.9 (www cgi) form-data loses original order Alan Grover

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).