Makes http fun again! Ain't no party like a httparty, because a httparty don't stop. 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. If the response Content Type is application/json, HTTParty will parse the response and return Ruby objects such as a hash or array. The default behavior for parsing JSON will return keys as strings. This can be supressed with the format option. In some cases you may want to skip SSL verification, because the entity that issued the certificate is not a valid one, but you still want to work with it. Unless you have specific requirements otherwise, we recommend to not set set the Accept-Encoding header on HTTParty requests.

Features

  • Ruby 2.3.0 or higher
  • multi_xml
  • Use the class methods to get down to business quickly
  • Or wrap things up in your own class
  • See the examples directory for even more goodies
  • Includes the executable httparty which can be used to query web services

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow httparty

httparty Web Site

You Might Also Like
Our Free Plans just got better! | Auth0 by Okta Icon
Our Free Plans just got better! | Auth0 by Okta

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your secuirty. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of httparty!

Additional Project Details

Programming Language

Ruby

Registered

2021-10-01