我有问题发布数据到我本地的appengine应用程序使用JQuery Ajax。这里被简化客户端代码:谷歌Appengine&jQuery:错误414(请求的URI太长)
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);
});
这里被简化服务器端代码:
class StoryEdit(webapp.RequestHandler):
def post(self):
f = Story.get(self.request.get('story_id'))
f.html = self.request.get('data')
f.put()
的误差414(请求URI太长)。我究竟做错了什么?
由于某些原因(错误或网站规则),我无法接受正确答案,所以谢谢。 – SM79 2010-09-16 12:21:20