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

Reply via email to