3 ms·
Now, if web browser would support custom HTTP verbs, you could map application actions to http verbs and start removing the years of work-arounds that used GET
by jared314 14y ago
Now, if web browser would support custom HTTP verbs, you could map application actions to http verbs and start removing the years of work-arounds that used GET and POST to tunnel what you really wanted.
- dmishe 14y agoCorrect me if I am wrong, but it seems that there are a gazillion of enterprise firewalls, gateways etc that will only let GET/POST thru.
- derefr 14y agoOnly if you let them see your traffic. What's the problem with going SSL-only? Are there really firewalls/gateways that don't let HTTPS traffic through?
- icebraining 14y agoMany enterprise proxies provide certificates for the clients machines so they can process HTTPS as well.
- FuzzyDunlop 14y agoI think that if this was done, there'd be a surge of blog posts not long after telling people to just use the original verbs, because everything about them - caching, idempotence, safeness, etc. - is a known quantity and doesn't change based on different interpretations of the same verb. Not to mention ridiculously confusing APIs. TWEET / GOOGLE /internet/?query=... LIKE /friend/jimmy GETPUTPOSTDELETE /i-am-too-lazy-to-use-separate-verbs
- jared314 14y agoPOST https://api.twitter.com/1.1/statuses/retweet/:id.json https://api.twitter.com/1.1/statuses/retweet/:id.json POST https://www.googleapis.com/youtube/v3/videos/rate?id=1234&rating=like&key={YOUR_API_KEY} https://www.googleapis.com/youtube/v3/videos/rate?id=1234... APIs are already confusing for anything beyond CRUD operations.
- bct 14y agoThat has all the disadvantages of using POST for everything, with the added disadvantage of requiring developers to read more documentation. Are there any advantages?
- sneak 14y agoNobody uses POSTs for everything. Right now we have an excellent GET/POST split.