Are you sure it is sent correctly? Try to see in browser's debugger what is send.
Also do you see anything in CppCMS logs? Enable high logging level.
Artyom Beilis
--------------
CppCMS - C++ Web Framework: http://cppcms.com/
CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/
>________________________________
> From: Saikumar Gandapodi <sai...@gm...>
>To: cpp...@li...
>Sent: Thursday, May 16, 2013 4:23 PM
>Subject: [Cppcms-users] request.post returning empty string
>
>
>I am not getting the post data from a Ajax POST call.
>
>In the Ajax request I am passing the following
>
>data = { value:'test' } ;
>
>and when we try to get the value from the dispatch method using the http::post method it returns
>empty.
>
>string value = request.post("value");
>
>What is happening ?
>
>I see that the private method parse_form_urlencoded() in http::request object which can parse this
>request params.
>Who should be calling this prior to calling the dispatch method ?
>
>
>
>
>------------------------------------------------------------------------------
>AlienVault Unified Security Management (USM) platform delivers complete
>security visibility with the essential security capabilities. Easily and
>efficiently configure, manage, and operate all of your security controls
>from a single console and one unified framework. Download a free trial.
>http://p.sf.net/sfu/alienvault_d2d
>_______________________________________________
>Cppcms-users mailing list
>Cpp...@li...
>https://lists.sourceforge.net/lists/listinfo/cppcms-users
>
>
> |