From: Dean M. B. <mik...@gm...> - 2011-01-11 16:51:35
|
On Wed, Jan 12, 2011 at 12:26 AM, David Hite <dav...@gm...> wrote: > Hello, > I am trying to parse the incoming query in a request to the synchronous > server. I see that there is a "query" method on the HTTP Normal Client > Request but not the Pod Server Request. I can't find any example of the > server request query parameters. > > Is there a simple way to pull out the "?" query portion of the uri? > > I am able to get the destination(request) method to work and could do some > string parsing but I figured there is a better way... > David, I'm afraid parsing the query string on your own would be the way to go at the moment. It shouldn't be too hard to do with either Boost.Regex or Boost.Xpressive (if you're adventurous using Boost.Spirit would be a good exercise too). I was planning to work on some of these utilities to be made part of a beginnings of a web library (note, not a framework) but I ran into some time sucks (work, family, and contributing to larger open source projects like Boost) preventing me from making progress in that front. I remember someone else in the list wanted this as a features, and if you can file it in http://github.com/cpp-netlib/cpp-netlib/issues I promise I'll get to it soon as I get time to do it. Thanks and I'm sorry I couldn't be much help on this one. -- Dean Michael Berris about.me/deanberris |