Re: [Cppcms-users] Json content type
Brought to you by:
artyom-beilis
|
From: Artyom B. <art...@ya...> - 2013-06-24 19:21:28
|
You can set content type. http://cppcms.com/cppcms_ref/latest/classcppcms_1_1http_1_1response.html#a50ae55ff605bc655f5b19021f0f4f71d Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Ronnie Chowdhury <ron...@db...> >To: cpp...@li... >Sent: Wednesday, June 19, 2013 7:22 PM >Subject: [Cppcms-users] Json content type > > >How do I get cppcms to return json objects with the application/json content >type rather than text/html > >Using the 'div' example, response is received fine and if I look at the net >traffic (eg using fiddler), I note it has the correct structure but wrong >content type. > >This means jquery's ajax methods reject it with 'Invalid Content type'. Do I >need to have a mime type configured somewhere? > >Thanks > >ROnnie > > >------------------------------------------------------------------------------ >This SF.net email is sponsored by Windows: > >Build for Windows Store. > >http://p.sf.net/sfu/windows-dev2dev >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |