github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

jnunemaker / httparty

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 709
    • 96
  • Source
  • Commits
  • Network (96)
  • Issues (9)
  • Downloads (4)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (4)
    • v0.5.2
    • v0.5.1
    • v0.5.0
    • v0.4.5
Sending Request…
Click here to lend your support to: httparty and make a donation at www.pledgie.com ! Edit Pledgie Setup

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Makes http fun! Also, makes consuming restful web services dead easy. — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Regenerated gemspec for version 0.5.2 
sandro (author)
Sun Jan 31 15:39:28 -0800 2010
commit  03852d246bc1482150e92c23115e02e1de4930fb
tree    38e64aa70ca7c66db5ccd9eca8873f6de871d6e5
parent  f7250c5d07d8b9961f1b777e26ccc41b81a46348
httparty /
name age
history
message
file .gitignore Sun Jan 24 20:27:27 -0800 2010 Yardoc Rake task [sandro]
file History Sun Jan 31 14:41:25 -0800 2010 Version bump to 0.5.2 [sandro]
file MIT-LICENSE Fri Dec 05 14:11:58 -0800 2008 Removing .txt from files (it has always annoyed... [jnunemaker]
file Manifest Sun Jul 19 17:30:56 -0700 2009 Fixed manifest. [jnunemaker]
file README.rdoc Sat Aug 22 07:32:09 -0700 2009 Updated readme with how to build from master. [jnunemaker]
file Rakefile Sun Jan 31 14:37:53 -0800 2010 Update Crack to version 0.1.6 Crack now suppor... [sandro]
file VERSION Sun Jan 31 14:41:25 -0800 2010 Version bump to 0.5.2 [sandro]
directory bin/ Sat Jan 30 19:08:29 -0800 2010 Remove dependency of rubygems Closes gh-27 [sandro]
file cucumber.yml Thu Jan 29 01:12:03 -0800 2009 Cucumber features and steps for most functional... [Don Petersen]
directory examples/ Sun Dec 06 22:06:13 -0800 2009 Use sanctioned formats interface in example [sandro]
directory features/ Sat Sep 12 19:48:07 -0700 2009 Add cucumber feature to test timeout option [sandro]
file httparty.gemspec Sun Jan 31 15:39:28 -0800 2010 Regenerated gemspec for version 0.5.2 [sandro]
directory lib/ Sun Jan 31 14:41:25 -0800 2010 Version bump to 0.5.2 [sandro]
directory spec/ Sat Jan 30 19:08:29 -0800 2010 Remove dependency of rubygems Closes gh-27 [sandro]
directory website/ Sat Aug 22 07:25:14 -0700 2009 Updated website to point to github issues inste... [jnunemaker]
README.rdoc

httparty

Makes http fun again!

Note on Releases

Releases are tagged on github and also released as gems on github and rubyforge. Master is pushed to whenever I add a patch or a new feature. To build from master, you can clone the code, generate the updated gemspec, build the gem and install.

  • rake gemspec
  • gem build httparty.gemspec
  • gem install the gem that was built

Note on Patches/Pull Requests

  • Fork the project.
  • Make your feature addition or bug fix.
  • Add tests for it. This is important so I don’t break it in a future version unintentionally.
  • Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself in another branch so I can ignore when I pull)
  • Send me a pull request. Bonus points for topic branches.

Features:

  • Easy get, post requests
  • Basic http authentication
  • Default request query string parameters (ie: for api keys that are needed on each request)
  • Automatic parsing of JSON and XML into ruby hashes based on response content-type

Examples

See github.com/jnunemaker/httparty/tree/master/examples

Command Line Interface

httparty also includes the executable httparty which can be used to query web services and examine the resulting output. By default it will output the response as a pretty-printed Ruby object (useful for grokking the structure of output). This can also be overridden to output formatted XML or JSON. Execute httparty —help for all the options. Below is an example of how easy it is.

  httparty "http://twitter.com/statuses/public_timeline.json"

Requirements

  • Crack github.com/jnunemaker/crack/ - For XML and JSON parsing.
  • You like to party!

Install

  • sudo gem install httparty

Docs

rdoc.info/projects/jnunemaker/httparty

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server