rack-devel archive mirror (unofficial) https://groups.google.com/group/rack-devel
 help / color / mirror / code / Atom feed
* Extract several POST Params with the same name
@ 2009-10-20  1:32 Julien
  0 siblings, 0 replies; only message in thread
From: Julien @ 2009-10-20  1:32 UTC (permalink / raw)
  To: Rack Development


Hi everyone,

In the context of creating a Hub for PubSubHubbub using Rails, it
seems that our app must be able to handle POST queries with multiple
occurences of params with the same name. (Please see this disucssion :
http://groups.google.com/group/pubsubhubbub/browse_thread/thread/bc971f0a4a99c446)

Right now, when I perform a call to my Rails app (which uses Rack)
with 2 params hub.mode having different values:

hub.mode=subscribe&hub.topic=http&hub.callback=http2&hub.verify=sync&hub.verify=async

Then, it seems that my app only sees that "last value", and params
["hub.verify"] = async.


I am not sure this is Rack's responsibility, but whil debugging I was
able to see that Rack had access to the right data in env
["rack.input"] and was able to "hack" that by forcing params
["hub.verify"] to be an arary containing both values.

Do you think that the HTTP params parser could be "fixed" to work with
that?

Thanks,

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

only message in thread, other threads:[~2009-10-20  3:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-20  1:32 Extract several POST Params with the same name Julien

Code repositories for project(s) associated with this inbox:

	https://80x24.org/mirrors/rack.git

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).