Here is a first working version of the THttpServer transport for the C++ library.
It was inspired by Mark Slee's THttpClient which i splitted into an interface, THttpTransport and two transport implementations, THttpClient and THttpServer. Tested with TJsonProtocol (the fixed revision available in
THRIFT-244) and TBinaryProtocol in the tutorial example, works like a charm.
The code is available in the attached patch, and in the gitweb tree in refs/pri/jbordier/cleaning_protocols, or also in github: http://github.com/ahfeel/thrift/tree/master
It only supports POST requests yet, and i'm working in adding a ?callback=some_js_callback support to the URI to have JsonP protocol support.