4 ms·
So what's the fix? I want to GET something that has an 8k long name. What do I do?
by lollerpops 14y ago
So what's the fix? I want to GET something that has an 8k long name. What do I do?
- voltagex_ 14y agoUse POST. GET is not meant for that amount of data. Alternatively, GET by a shorter ID.
- lollerpops 14y agoWhat do I do about the people who tell me POST is only for actions which change server state?
- voltagex_ 14y agoYou write a well documented application that is useful, adheres to as much of REST as you can and leave the theories to other people.
- drivebyacct2 14y agoSimultaneously, it seems to indeed be a convention. And why not follow it? Do you have something whose keys really require the numerousness of 8KB of characters?
- damncabbage 14y agoI have an 8-foot toenail that needs a little clipping; what tool should I use? More seriously, what needs an 8KB-long name? (That bug post contains a few workarounds that'll let Drupal get back to GET for one of the listed cases. Drupal's case is particularly pathological as it's trying to be everything to everybody; it's like being a handsaw AND a sander AND a varnish for the floor AND a dessert topping.)
- lollerpops 14y agoA file storage service, ala dropbox, that allows you to select multiple files and download them as a zip. The concatenation of several uuids adds up quickly.
- damncabbage 14y agoGood point. Unbounded requests (hundreds or more of ten-char IDs) are definitely candidates for a POST workaround. It's a shame, but necessary. :S My main beef with Drupal is that it uses POST for everything, whether it's to /jobs/1234 or to /files/?id[]=1234&id[]=3452&...