html jQuery ajax 400 Bad Request - solved

PAUL DEBRUICKER <[email protected]>
Newsgroups gmane.comp.lang.smalltalk.squeak.seaside
Message-ID <[email protected]>
Hi - 

I just spent a little over an hour or so trying to figure out why a JQAjax>>#callback:json: was resulting in a 400 Bad Request error. The error occurred because the JSON body was to long to send in a GET request.  When I switched from 

html jQuery ajax callback:[:json | self processJson: json] json: (JSStream on: 'myInterestingVariable')


to


html jQuery post callback:[:json | self processJson: json] json: (JSStream on: 'myInterestingVariable')



everything worked out great because POST body sizes are allowed to be longer, and that length is set by the server, not the spec.  


So I'm just sending this note to my future self for the next time I forget this is how the world is. 

Please forgive the noise.  


Paul  
_______________________________________________
seaside mailing list
[email protected]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.