I have problems posting data to my local appengine application using JQuery Ajax. Here is simplified client side code:
text_to_save = 'large chunk of html here'
req = '/story/edit?story_id=' + story_id + '&data=' + text_to_save;
$.post(req, function(data) {
$('.result').html(data);
});
Here is simplified server side code:
class StoryEdit(webapp.RequestHandler):
def post(self):
f = Story.get(self.request.get('story_id'))
f.html = self.request.get('data')
f.put()
The error is 414 (Requested URI too long). What am I doing wrong?