In a message dated 2/20/2002 12:00:16 AM Eastern Standard Time,
[EMAIL PROTECTED] writes:


> > Before you do and spend a lot of time coding form.tcl in C though,
> > I would recommend seeing what the AOLServer head is doing.  I didn't
> > examine it closely, but it's only about 20 lines of Tcl now.
>
>
> I suppose you have a good point.  I'll take a look at it.
>



Hi,

I haven't been following this thread closely so this may have already been
covered but it turns mulitipart forms are handled by the C API in 4.0 now,
i.e., "ns_conn form" does the right thing and the stuff in form.tcl shouldn't
be required.

This was done as part of the overall I/O changes in 4.0 - I'm not sure if the
current code makes things go faster or slower.  Basically, 4.0 reads the
entire request before dispatching to the connection thread.  This allows the
"ns_conn form" Tcl command and the Ns_ConnGetQuery() C API to both see the
entire request and handle ordinary and multipart forms directly.  A new
(perhaps misnamed) sub-command, "ns_conn files" returns a list of
offset/lengths for the embedded files which you can then use "ns_conn copy"
to copy as you wish - I don't believe there is a C API for this info yet.
Also, the various UTF translation stuff should be handled as well.

This feature has been lurking, with others, in the head 4.0 code on
sourceforge.  We've been pretty busy with other priorities here at AOL which
has stalled 4.0 development for some time.  However, I see signs the freeze
may be thawing. Specifically there are now compelling reasons we want to get
4.0 into production here at AOL in the next few months, normally a milestone
before we announce a release ready for others.  I'll let you know when this
starts to happen - some of you may find the new features useful as well.

-Jim

Reply via email to