From: Dean M. B. <mik...@gm...> - 2008-08-11 15:38:49
|
Hi Divye, On Mon, Aug 11, 2008 at 9:39 PM, Divye Kapoor <div...@gm...> wrote: > Hi Dean, > It is possible for a POST request to send multiple body entities with > multiple content types using multipart transmission (RFC 2388) > Should we support this feature? In order to do that, we will need to analyse > the body of the message to determine suitable boundaries. > That should be pretty easy to do. I'm thinking of adding the following to support this: -.post(request, range<pair<string,string> >) Where the range contains a mapping between content-type and content. >From within, we recreate the actual request with the correct headers and the body that contains the correct format/delimiter. Or even, using Boost.Fusion: post(request, sequence) Where sequence is a Fusion sequence of STL pairs. > I have just checked in the code without unit tests -- maybe someone > who knows how to deal with the Python Server (CGI perhaps) and do > POST, PUT, and DELETE handling should take over the testing of this > code? > > There is no direct support for PUT and DELETE on the Python server > currently. I'll see how that can be implemented. > Oh. It might be something worth looking into. Thanks in advance. -- Dean Michael C. Berris Software Engineer, Friendster, Inc. |