An open API service indexing awesome lists of open source software.

https://github.com/mislav/curly

Easier than Curl::Easy
https://github.com/mislav/curly

Last synced: about 1 year ago
JSON representation

Easier than Curl::Easy

Awesome Lists containing this project

README

          

Curly
=====

Curly is a wrapper for `Curl::Easy` from [Curb gem](http://curb.rubyforge.org/ "Curb - libcurl bindings for ruby"). It makes HTTP GET and POST even easier than `Curl::Easy`.

Examples
--------

# get a web page parsed with Hpricot:
Curly.get_document('http://www.google.com')
# -> Hpricot::Doc instance

# POST params as hash:
Curly.post('http://example.com/signup',
:name => 'Mislav',
:email => 'mislav.marohnic@gmail.com'
)