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
- Host: GitHub
- URL: https://github.com/mislav/curly
- Owner: mislav
- Created: 2008-06-18T18:19:13.000Z (almost 18 years ago)
- Default Branch: master
- Last Pushed: 2008-06-30T21:26:23.000Z (almost 18 years ago)
- Last Synced: 2025-04-15T17:12:12.576Z (about 1 year ago)
- Language: Ruby
- Homepage:
- Size: 85.9 KB
- Stars: 9
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
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'
)