Re: [Cppcms-users] Get HTTP Headers of Request
Brought to you by:
artyom-beilis
From: augustin <aug...@ov...> - 2010-08-25 11:09:11
|
On Wednesday 25 August 2010 06:29:35 pm Julian Pietron wrote: > Hi, > > how can I get a certain header sent with the client's request? I was > looking for a method like std::string request().header("which-header");, > but didn't find a method like this. > Could one please point me to the method I can use to get a http header? > The problem is, that it's a custom header, so the methods from > http::request for standard headers won't suffice. Hi Julian, Won't this fit your needs? void cppcms::http::response::set_header ( std::string const & name, std::string const & value ) <http://art-blog.no- ip.info/cppcms_ref_v0_99/classcppcms_1_1http_1_1response.html#37b0c6c284c9d8f319a87c86d182f021> I am not yet familiar which forms can headers take, but I just came across this, so I thought I'd mention it. Augustin. -- Friends: http://www.reuniting.info/ http://activistsolutions.org/ My projects: http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://www.wechange.org/ http://searching911.info/ . |