Hello!

In 2009, a great tool was created on
Rails Rumble by Lech Culver and
Chris Vanstraat - Hurl.
Hurl is a RoR application designed to send HTTP requests. In general, the functionality of Hurl is similar to Curl. The idea and methods are the same, but the purpose is completely different.
')
Unfortunately, the hosting on which the official Hurl stands is very unstable and slow and not suitable for corporate use. Open source technologies give us the opportunity to raise our Hurl instance and even make it better and more convenient.
So we raised and improved Hurl on our hosting -
hurl.quickblox.com . The application is configured on an EC2 instance, and the data is stored on S3.
What we have improved the source code Hurl? Firstly, in
its fork, sc-raptor corrected a bug with authorization on GitHub, which didn’t want to work in the source code. Secondly,
korjik added to Hurl the ability to shorten links to Hurl using
bit.ly in our user domain
qblx.co.And now I will describe in more detail the possibilities of Hurl. The main important details of this application are:
- Generate HTTP requests
- Saving query history
- Sharing requests and response bodies separately
So, having come on the main page, do not forget to log in through GitHub.
After login, you will see the following picture: your GitHub login has authorized you and made it possible to view all the calls made
Further, you can do the simplest requests, for example, to the Yandex API from the
zviryatko article . Make a simple request:
So we got the translation of the word midnight - midnight.
Let's take a closer look at the bottom of the page:
We are now at the Response tab - Answer. Here we can see the answer to the request we made.
Clicking on Request - Request, we see the request that we made in this format:
The most interesting is the links "
view full size " and "
permalink ". By logging in, you can see the body of the answer and try other queries.
Going into your "office", you will find a list of your khurlov:
You can also delete what is not needed.
How and where are the Hurles stored? In the ruby ​​application there is a db folder. In it, in the form of a binary, there are “khury”, “views” and users:
$ ls -l db / hurls /
total 1028
drwxr-xr-x 48 hurl hurl 4096 2012-03-22 15:58 00
drwxr-xr-x 45 hurl hurl 4096 2012-03-22 16:46 01
drwxr-xr-x 49 hurl hurl 4096 2012-03-22 13:58 02
drwxr-xr-x 47 hurl hurl 4096 2012-03-22 14:11 03
drwxr-xr-x 44 hurl hurl 4096 2012-03-22 13:24 04
drwxr-xr-x 45 hurl hurl 4096 2012-03-23 ​​10:38 05
drwxr-xr-x 48 hurl hurl 4096 2012-03-23 ​​14:32 06
drwxr-xr-x 47 hurl hurl 4096 2012-03-23 ​​08:34 07
drwxr-xr-x 50 hurl hurl 4096 2012-03-23 ​​10:07 08
drwxr-xr-x 52 hurl hurl 4096 2012-03-21 10:45 09
drwxr-xr-x 43 hurl hurl 4096 2012-03-23 ​​15:43 0a
Not a lot of places involved. For more than six months of active use of Hurl, our team made only 152 MB of requests:
$ du -h --max-depth = 1 db /
77M db / hurls
76M db / views
136K db / users
152M db /
What is all this for? We are working on a project that is very actively using API. Testing and writing documentation is much easier if you use Hurl. Also, illustrative examples for users not only in Curl requests and responses, but also a place where you yourself can touch the API.
In general, Hurl is an easy and convenient tool for creating and storing HTTP requests. It is installed as the simplest Rails application. Takes up little space and system resources. We recommend to use!