8 ms·
Make HTTP requests from your browser
- pors 15y agoSooo, web based curl? Amazing! #not
- ceejayoz 15y agoI take it you've never had "What's curl?" as a response when trying to show someone an API is working fine?
- pors 15y agoWell, maybe you're right. I assumed that people programming against REST API's know basic tools like curl, but apparently I got that wrong.
- ceejayoz 15y agoYep. I've encountered plenty of cargo-cult programmers who know how to copy-paste code examples but who are SOL when it comes to troubleshooting.
- taf2 15y agoVery useful - to send a curl to someone - to explain why a response is incorrect or provide context about a service response... Sure you could use curl + gist - but there is something I nicer here - for example on my iPhone I could use hurl.it to explain a bad response via email without having to drop into a shell... Great service thanks!
- secure 15y agoSo my browser will send an HTTP request to this website which in turn sends an HTTP request? We need to go deeper…
- wavephorm 15y agoWhat I want is a website that can now render that http response into a fully formed webpage and display that in my browser.
- jgeralnik 15y agoAnd use that newly generated website to make another http request!
- stanleydrew 15y agoSource is here: https://github.com/defunkt/hurl https://github.com/defunkt/hurl It's a pretty thin proxy.
- tlrobinson 15y agoSadly Hurl won't make requests to itself.
- swindsor 15y agoEven better, check out the github repo, then set it up with passenger. https://github.com/defunkt/hurl https://github.com/defunkt/hurl Makes local api testing a breeze.
- bryanh 15y agoI would pay for a better hurl.it (common templates, saved responses, etc, etc...). It's been an absolutely indispensable tools for debugging (crazy) API's while developing https://zapier.com https://zapier.com.
- sirn 15y agoHave you considered using something like Charles Proxy[1] instead? [1]: http://www.charlesproxy.com/ http://www.charlesproxy.com/
- bryanh 15y agoI have not. Brilliant link. Thank you!
- aw3c2 15y agoThere is some FOSS alternative if I recall correctly but I forgot the name. I think it was written in Java.
- webandy 15y agoCocoaRestClient? http://code.google.com/p/cocoa-rest-client/ http://code.google.com/p/cocoa-rest-client/
- 18pfsmt 15y agoThe Cocoa-specific app looks interesting, but I think the Java-based alternative you were referencing was Paros[1]? [1]http://www.parosproxy.org/download.shtml http://www.parosproxy.org/download.shtml
- jtchang 15y agoParos?
- johns 15y agoNo need to pay, we (Twilio) are now actively maintaining it and going to be adding some new features. Common templates exists (not documented) yet. You can put values in URL parameters and the fields will autopopulate effectively giving you URL-based templates. Responses are already saved, click the permalink to get back to them later. If you have any other feedback items, feel free to post them here or on https://github.com/twilio/hurl https://github.com/twilio/hurl and we'll take a look at them. Pull requests are even better.
- raesene2 15y agoInteresting idea, could be very useful. One thing with this kind of service is always how they handle validation of data from the 3rd party service (eg, in headers). So as an example http://hurl.it/hurls/db870b49c7203ec9acb47ba7769c126146b17688/7a2392760777638701222299a58c3d9b461bf403 http://hurl.it/hurls/db870b49c7203ec9acb47ba7769c126146b1768... executes javascript in the context of their site... (just a pop-up box with hi, but could be any script..)
- mtrimpe 15y agoMinor bug-report: when you keep clicking on the 'Send' button continuously it will occasionally show the JSON response in-browser instead of updating the UI. And no, I'm not crazy. I was trying to test GitHub's rate-limiting. ;)
- johns 15y agoThanks for the report, can you put this into the issues list on https://github.com/twilio/hurl https://github.com/twilio/hurl?
- godDLL 15y agoDo you have some limits in place, or can I just expect it to proxy all of my web traffic when I want it to (which I can do with one JS statement right on this page)? Magic WebKit Inspector is going to ruin your hosting bill.
- deleted 15y ago[deleted]
- nuttendorfer 15y agoThis is useful if you are on systems where curl is not easily available. Helped a few times!
- deleted 15y ago[deleted]
- slig 15y agoIf you're on OSX, take a look on http://ditchnet.org/httpclient/ http://ditchnet.org/httpclient/
- strags 15y agoHomer: They have HTTP in browsers now?
- FuzzyDunlop 15y agoSee also: XHR Poster (Chrome extension) [1] I couldn't live without it. [1] http://goo.gl/UFSdZ http://goo.gl/UFSdZ
- huhtenberg 15y ago> Make HTTP requests from your browser Ironically, this is exactly what the browser is for.
- lucisferre 15y agoYeah I had to read the title twice, just to make sure I read it correctly.
- zalew 15y agoexactly. I thought: uhm, isn't it what I'm doing right now?
- stanleydrew 15y agoUnless you want to make put or delete requests.
- tomblomfield 15y agoYes, but "Make HTTP requests with custom action, headers & body from your browser" isn't as snappy.
- dools 15y agoIf you just put the word "custom" in there I reckon it would make a big difference ;)
- WA 15y agoHurl http://victim.org/index.php?a=;DROP http://victim.org/index.php?a=;DROP DATABASE users -- What I want to say is that services like this have a security flaw by design which allows random people to execute strange statements in the name of Hurl. There are certainly other ways to execute malicious HTTP requests (for example, let the Google Bot do it), but still, it should be pointed out.
- tomblomfield 15y agoBy "services like this", I hope you mean websites that are vulnerable to SQL injection, and not Hurl itself? Hoping that an attacker can't use curl probably isn't a good security solution...
- WA 15y agoYes, not Hurl itself. But Hurl can be used to execute malicious statements. It is a difference, whether an attacker uses his own IP address (or a setup with various VPNs and proxies) or uses Hurl for it so that the target website sees only Hurl's IP in its logs. In times of free WiFi, the traceability of malicious requests is definitely reduced anyway, but Hurl could potentially add another layer that can be used by an attacker to obscure his/her origin. I'm not saying that this is a major security issue, it is just a flaw by design, which I wanted to point out.
- ay 15y agoDo you happen to know how translate.google.com deals with this problem ?
- evmar 15y agoYou can make a browser GET or POST to any arbitrary URL already via JavaScript.
- gcb 15y agoOn mobile so i can't check myself: does The BROWSER makes the request by some clever way? Or simple server side script does it?
- maybemaybenot 15y agoThat's kind of handy for looking to see where irritating shortened links are redirecting - e.g. t.co or bit.ly
- kami8845 15y agohttp://tools.pingdom.com/fpt/ http://tools.pingdom.com/fpt/ gives you an image too :)
- Hunterhdolan 15y agoYeah... thats the funny thing about web browsers... the tend to do that
- tomblomfield 15y agoUseful service, but this has been around for many months now..
- johns 15y agoHurl.it was originally created by Chris Wanstranth and Leah Culver at the 2009 Rails Rumble. We (Twilio) just took over maintenance of the project because it has some obvious utility when testing URL callbacks and webhooks. We want to make some improvements to it, so if you have any ideas or suggestions, I'd love to hear them. You can post them here or create an issue on the current home of the project on Github: https://github.com/twilio/hurl https://github.com/twilio/hurl And you can follow @hurlit for updates
- mountaineer 15y agoIt is a great utility, thanks for taking it over and giving it more stability.
- meow 15y agoIt will be gr8 if you can add OAuth signing support to hurl. Testing urls that need to be signed with OAuth is a major pain point.
- thezilch 15y agoYou have may find MySpace's tool [0] or Google's OAuth Playground [0] or OAuth 2.0 Playground [1] helpful. [0] http://wiki.developer.myspace.com/index.php?title=OAuth_Testing_Tool http://wiki.developer.myspace.com/index.php?title=OAuth_Test... [1] http://googlecodesamples.com/oauth_playground/ http://googlecodesamples.com/oauth_playground/ [2] https://code.google.com/oauthplayground/ https://code.google.com/oauthplayground/
- aurelianito 15y agoIt would be great if instead of a website you port it to a browser plug-in. It would achieve several things: * Better security for the user (the paranoid in me do not want to send my credentials through a third party site). * It could use the credentials stored in the browser (cookies, basic-auth, etc). * The IP of the requester would not be hidden, allowing IP filtering for development servers. * It could run on a PC that is not connected to internet.
- deleted 15y ago[deleted]
- Terretta 15y agoOlder and better (a point of opinion): http://www.rexswain.com/httpview.html http://www.rexswain.com/httpview.html Since October 1999, actually.
- drp 15y agoSomething fun to point it at: http://httpong.com http://httpong.com Particularly http://httpong.com/response http://httpong.com/response but the other parts can show you what hurl.it is sending.
- deleted 15y ago[deleted]
- johtso 15y agoOr http://httpbin.org http://httpbin.org
- ssfak 15y agoSomewhat similar but more useful for debugging "HTTP caching" by Mark Nottingham: redbot (http://redbot.org/ http://redbot.org/)
- obeattie 15y agoI've used this extensively before; brilliant little service, but I've recently started using the "REST Console" Chrome extension, which is bloody brilliant: https://chrome.google.com/webstore/detail/cokgbflfommojglbmbpenpphppikmonn https://chrome.google.com/webstore/detail/cokgbflfommojglbmb...