[EMAIL PROTECTED] (David N. Welton) writes:

> I switched most of the code over to libapreq today, which is
> advantageous in that it gets us a standard set of functions that are
> used by other projects as well.
 
> I will commit to CVS tommorow.
 
> It means changing the headers setcookie command, and the file upload
> semantics.
 
Ok, I made the commit.  Changes are in CVS.

Briefly, the new variables for uploads are:


The name of the file as it was uploaded

                       Tcl_NewStringObj("::request::UPLOAD", -1),
                       Tcl_NewStringObj("filename", -1),

The variable name in the form.
                       Tcl_NewStringObj("::request::UPLOAD", -1),
                       Tcl_NewStringObj("name", -1),

The size of the file.
                       Tcl_NewStringObj("::request::UPLOAD", -1),
                       Tcl_NewStringObj("size", -1),

Type of the file (may not exist)
                           Tcl_NewStringObj("::request::UPLOAD", -1),
                           Tcl_NewStringObj("type", -1),

An open channel pointing to the file.
                       Tcl_NewStringObj("::request::UPLOAD", -1),
                       Tcl_NewStringObj("channelname", -1),

This last one is the big change.  I am not entirely pleased with it,
but I have commit access to the libapreq sources, so I hope to fix it
soon.  I want to restore the ability to upload to a Tcl variable.

headers setcookie now works like this:

"headers setcookie -name cookie-name -value cookie-value ?-expires expires? ?-domain 
domain? ?-path path? ?-secure on/off?");

Someone actually suggested this a while ago, so I hope that people are
happy with it:-)

Sorry for any pain this causes, but I think in the long run it will be
a big benefit: we have code that is used by multiple projects and has
a variety of people working on it, hopefully making it quite solid,
secure and functional.

-- 
David N. Welton
     Personal:           http://www.efn.org/~davidw/  
Free Software:           http://people.debian.org/~davidw/
   Apache Tcl:           http://tcl.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to