Test for payload length
jimlester opened this issue · comments
Thank you for this example! I'm testing the fromscratch branch and notice in main.js(35) payload_url.length < 2000. Should this be payload_url.length > 2000 ?
Thanks for your help.
Yeah, my code is using GET request, so JSON object gets mapped to the url (with ?foo=bar&...). I guess that I've limited this to 2000 chars because it seemed to be a sane maximum for URL (check: http://stackoverflow.com/questions/417142/what-is-the-maximum-length-of-a-url-in-different-browsers )
There are no reason that you couldn't use POST request instead to remove this limitation.
Feel free to correct me or ask for clarification if needed.