From: Severin P. <pap...@gm...> - 2011-02-25 04:52:53
|
Hi again well,what would be nice to have is to print incoming requests on server side, both header and body. Something like it is done in one of the client examples. Would be nice to have it for general use - for debugging and verbose logging I've tried to copy printing body/header code from client to server (with appropriate changes), but it didn't compile. Any advices? regards Sever On Wed, Feb 23, 2011 at 11:52 PM, Dean Michael Berris < mik...@gm...> wrote: > Hi Sever, > > On Thu, Feb 24, 2011 at 9:50 AM, Severin Pappadeux <pap...@gm...> > wrote: > > Hi, All > > Ubuntu 10.10 64bit, gcc-4.4 > > Build BOOST 1.46, and on top of it cpp-netlib 0.8.1. > > The only thing I did was to declare to use BOOST_FILESYSTEM version 2, > got > > one issue: > > some tests didn't do good, but when I tried them manually, seems to work > > (well, except MIME parser). > > Yeah, the MIME stuff is currently un-maintained but last I checked is > practically functional. > > > Now question: > > could I use the code to push files forth and back? Fielserver.cpp seems > to > > be good point to start to get data back, but could I push it > > from client to server to store data? > > You can definitely use the HTTP client(s) in cpp-netlib to push data > via PUT/POST -- you just have to craft the appropriate requests. At > the moment the way to do it is terribly inefficient, and I hope to be > able to address those issues soon. > > Having said that, the fileserver example can be extended to support > PUT/POST, but it wouldn't be a simple example anymore if I do that. ;) > > > thank you > > Thanks for trying it out. In case you have any more questions please > feel free to ask on the list again and we'll try to help you out as > soon as we can. :D > > -- > Dean Michael Berris > about.me/deanberris > |