defunkt / hurl

Hurl makes HTTP requests.
http://hurl.it
MIT License
531 stars 77 forks source link

Allow defaults to be passed in to the form #43

Closed bjpirt closed 12 years ago

bjpirt commented 12 years ago

This very minor change initialises the default @hurl with params instead of {} so that we can pass some values in and pre-populate the fields. This makes it a lot easier to send people examples of how to use an API call.

For example:

http://hurl.it/?url=http%3A%2F%2Fapi.pachube.com%2Ffeeds.json&header-keys[]=X-PachubeApiKey&header-vals[]=dshajfbds&method=POST&post-body=%3Csome%3E%0A%20%20%3Ccontent%3E%0A%20%20%3C%2Fcontent%3E%0A%3C%2Fsome%3E%0A

(if this were running on hurl.it of course)

johnsheehan commented 12 years ago

hey ben. we're starting up active development of hurl at twilio/hurl. would you mind resubmitting this pull request there? it's a small change, but i want to make sure you get credit for it.