Every repository with this icon (
Every repository with this icon (
| Description: | Hurl makes HTTP requests. edit |
-
This was mentioned in #13 but that was closed because the main problem was resolved. When I run
rake startin a Terminal and later hit^Cthe Redis process is killed but not the Rack server. I have to runkillall rubyfrom another Terminal to kill it.Comments
-
2 comments Created about 1 month ago by defunktBetter error messages if missing xmllint or pygmentizefeaturexCurrently you just get a "broken pipe" error.
Comments
Better idea from sjl:
actually, check upon startup and set a flag somewhere, then if it's not successful you can skip highlighting the code so it doesn't break, and display a warning like "syntax highlighting is not available because pygments isn't installed" -
Add line numbers to the request/response output so that they can be referenced by users.
Comments
Might need to pass linenos parameter to pygments.
-
That brew recipe doesn't exists, nor can I find it with github search. But I do have
xmllintcommand on my system, probably came with libxml2. However, there's no libxml2 homebrew recipe either...Comments
joshthecoder
Tue Oct 20 11:09:02 -0700 2009
| link
A side note here for ubuntu/debian users, use "apt-get install libxml2-utils" to install xmllint.
libxml2 for any Windows users, http://gnuwin32.sourceforge.net/packages/libxml2.htm
xmllint: http://code.google.com/p/xmllint/
I haven't tested either, but should be a good place to start.
-
Create a more customizable design.
- header
- background color or image?
- link color
Should these be specified in a custom css file or in a config file? I'm leaning toward a custom css file.
Comments
-
A great use for open source Hurl is to provide a generic API explorer for API providers. An API provider can install their own Hurl and customize it for their API.
Example API explorers:
- Flickr (ex: http://www.flickr.com/services/api/explore/?method=flickr.activity.userPhotos) - Netflix (http://developer.netflix.com/walkthrough/) Any others?What makes a useful API explorer?
Comments
-
I've added support for URI templates in mislav@9732dc7
Comments
I'm re-opening this for now... the UI needs to be made more consistent with the rest of the app (e.g. the labels)
Well, other text inputs don't have labels, so how do you want them to look? I thought abut using the "title" hack you're using for URL field but it doesn't seem a good fit and conflicts with default values.
Sorry, I was the one who rejected the change. I like the idea of URI templates but I want to reconsider the implementation.
I don't see any good use-case for dynamically making fields while typing in a URL... why not just put the values in the URL??
However, I do see another use-case:
API documentation for a website (such as Twitter) could use a link to Hurl with a URL parameter containing URI templates. Then Hurl could supply the input fields matching the URI template.
Hey Leah, thanks for commenting.
Now, your idea of sites providing the URI template in the URL to hurl.it is good:
http://hurl.it/?url=http://this.is/{some}/{template}But I'm afraid it won't scale; the resulting hyperlink would be huge because URI templates are often very large and there's a possibility it might hit some limit of what a specific user agent could cram in a GET request. So my idea with this implementation was that the URI template itself is saved as a hurl—the resulting permalink is easy to share.
A drawback with my approach is exactly what you noticed: input fields appear dynamically, but someone who is entering this URI template doesn't have an intention of filling them in—he or she just wants to share the template with a nice permalink.
Proposed solution:
1. no input fields appear dynamically,
2. when the URL submitted to Hurl is a URI template, it is saved as a special Hurl and no external HTTP hits are performed at this point,
3. the special Hurl is shared and when you open it you are presented with input fields that populate the template (like in my screenshot),
4. once you fill in the fields and submit, the result gets processed and saved as a regular hurl (with response headers, body and such).Thoughts?
-
0 comments Created about 1 month ago by sjlAllow a raw block of text to be POSTed instead of just key/value pairs.featurexRight now Hurl is pretty much unusable for testing APIs that expect a blob of (for example) JSON content as the POST data.
The option to have one big text field where you input data to POST would be great.
Comments
-
application/x-javascript response body not displayed
0 comments Created about 1 month ago by ablockWhen I request a file that's returned as MIME type application/x-javascript, the response header is displayed but the response content is not.
Example: paste "http://code.jquery.com/jquery-latest.js" into hurl.it.
Comments
-
when displaying the response (and request for POST as well), it would be better to have a blank line between header and body (as it is in the actual request)
Comments
-
with the add header feature, it is easy to check if a server supports deflate encoding, but it doesn't display anything if it does.
Comments
-
When the reply cannot be understood, some hints why would be useful
0 comments Created 25 days ago by alexlehmWhen the reply cannot be displayed, displaying at least the header would be helpful.
Maybe the response can be displayed as hex dump.Comments
-
redis installation only works after getting source code
0 comments Created 25 days ago by alexlehmI think the sequence of instructions to install the prerequisites is confusing, the rake call to install redis will only work if the source is available in the current dir (e.g. after git clone).
also, redis-server is available on Ubuntu, so it may be available on debian as well.
Comments
-
I had a problem that rakeup was not in the search path, the rakefile doesn't say anything if the command fails
Comments












Can you copy / paste the output of these two commands:
~/Desktop/hurl→rake --version rake, version 0.8.3
~/Desktop/hurl→ruby --version ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0]