Try ns_writecontent.  That will write the post data to a file (I think)
and then you can muck with the file data using TCL.  So, for example:

# get interp # for a unique file name (or use ns_mktemp, or ...)
  set me [ns_info interp]
  set fd [open /tmp/post$me w+]
  ns_unlink /tmp/post$me
  ns_writecontent $fd
  seek $fd 0
  set postdata [read $fd]
  close $fd

Use this instead of ns_getform or ns_form.  It'll probably have TCL
issues if there are nulls in the post data.

Good luck!
Jim

>
> Hello,
>
> I would like to ask if there is an equivalent of PHP's $HTTP_RAW_POST_DATA
> global variable in AOLSERVER using TCL.
>
> $HTTP_RAW_POST_DATA gets an entire form post in raw format. This allows a
> great deal of flexibility as developers like me can parse the data from an
> unconventional post (e.g. multi-mime multi-part).
>
> I tried ns_getform but it doesn't seem to work because it puts form posts
> into an ns_set.
>
> Thanks,
>
> Hamilton
>
>
> --
> AOLserver - http://www.aolserver.com/
>
> To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with 
> the
> body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field 
> of your email blank.
>


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of 
your email blank.

Reply via email to