Skip to content Skip to sidebar Skip to footer

Cherrypy Json Vs Form Post

I have a web application developed in Python with the CherryPy framework. It uses many conventional HTML forms (with x-www-form-urlencoded data). I'm developing an iOS application

Solution 1:

Found it! Just needed to add 'tools.json_in.force': False, to the config.

cherrypy.config.update({
'environment': 'production',
'log.screen': False,
'log.access_file': '/home/adamek/webapps/cocoa_foody/logs/access.log',
'log.error_file': '/home/adamek/webapps/cocoa_foody/logs/error.log',
'server.socket_host': '127.0.0.1',
'server.socket_port': 15982,
'tools.caching.on': False,
'tools.encode.encoding': "utf-8",
'tools.json_in.on': True,
'tools.json_in.force': False,
})

Post a Comment for "Cherrypy Json Vs Form Post"