5 ms·
I love the simplicity provided by a good REST API. ESRI's REST platform is a good example of a nice, clean API. Very easy to diagnose and resolve issues, espec
by jschrf 15y ago
I love the simplicity provided by a good REST API.
ESRI's REST platform is a good example of a nice, clean API. Very easy to diagnose and resolve issues, especially with tools like Fiddler.
A really nice feature to have in a REST API is the ability to run operations in an HTML form. With this, you can re-run requests in the browser and tweak parameters to help you diagnose issues. Very useful.
- tlrobinson 15y agoI prefer Charles: http://www.charlesproxy.com/ http://www.charlesproxy.com/
- jschrf 15y agoLooks good. I'll give it a try, thanks. One problem I have is dealing with viewing my Comet connection (long-lived XHR). I stream JSON to the browser and Fiddler picks up and is able to display all this data, but prevents it from being received by the browser. Would be nice to not have this problem so I can see my JSON events in Fiddler and in my UI.
- terinjokes 15y agoCan you let us know if you had better luck with Charles?
- jschrf 15y agoSure thing.
- georgefox 15y agoHave you tried tcpTrace (http://www.pocketsoap.com/tcptrace/ http://www.pocketsoap.com/tcptrace/)? It's dead simple, so I wonder if that may help. I haven't ever used it with long-lived XHR, so I can't say it'll work, but it's a free, 224 KB standalone, so it can't hurt to try.
- jimbobimbo 15y agoCharles is awesome. We used it to debug connectivity with some third-party web service over HTTPS -- absolutely worth its money.
- cpeterso 15y agoAbsolutely. Charles can sniff SSL by acting as a man-in-the-middle Certificate Authority. Very clever!