Usually, POST content contains query parameters, which can be accessed as members of the ns_set returned from ns_getform. Are you POSTing something that isn't a query parameter? If so, can you redo things so that you post it as a query parameter? (That's the easiest thing, then you can just do ns_getform and pick out the proper member of the resulting ns_set.)
On Sun, 13 Oct 2002, Dan Wickstrom wrote: > I would like to access the content associated with a POST, and so far, > the only method I can see to do this is something like the following: > > > > set filename [ns_mktemp /tmp/fooXXXXXX] > set fh [open $filename w] > ns_writecontent $fh > close $fh > set fh [open $filename r] > set content [read $fh] > close $fh > ns_unlink -nocomplain $filename > > > I would like to be able to do this without having to use a file as an > intermediary. Something like the following: > > set content [ns_conn content] > > Looking in conn.c, I've noticed that ns_conn seems to have had a content > sub-command in the past, but it's no longer implemented. > > Regards, > > Dan >
