mirror of
https://github.com/jnunemaker/httparty
synced 2023-03-27 23:23:07 -04:00
868053fce7
Solution to non-ASCII character problem |
||
---|---|---|
.. | ||
aaws.rb | ||
basic.rb | ||
body_stream.rb | ||
crack.rb | ||
custom_parsers.rb | ||
delicious.rb | ||
google.rb | ||
headers_and_user_agents.rb | ||
idn.rb | ||
logging.rb | ||
microsoft_graph.rb | ||
multipart.rb | ||
nokogiri_html_parser.rb | ||
peer_cert.rb | ||
README.md | ||
rescue_json.rb | ||
rubyurl.rb | ||
stackexchange.rb | ||
stream_download.rb | ||
tripit_sign_in.rb | ||
twitter.rb | ||
whoismyrep.rb |
Examples
-
- Httparty included into poro class
- Uses
get
requests - Transforms query params to uppercased params
-
- Httparty included into poro class
- Uses
get
requests
-
- Creates a custom parser for XML using crack gem
- Uses
get
request
-
- Adds Html as a format
- passed the body of request to Nokogiri
-
- Create an additional parser for atom or make it the ONLY parser
-
- Basic Auth, shows how to merge those into options
- Uses
get
requests
-
- Use the class method of Httparty
- Pass the User-Agent in the headers
- Uses
get
requests
-
- Httparty included into poro class
- Uses
post
requests
-
- Httparty included into poro class
- Uses
post
requests
-
- create a log file and have httparty log requests
-
- Httparty included into poro class
- Creates methods for different endpoints
- Uses
get
requests
-
- Httparty included into poro class
- Example of using
debug_output
to see headers/urls passed - Getting and using Cookies
- Uses
get
requests
-
- Httparty included into poro class
- Basic Auth
- Loads settings from a config file
- Uses
get
requests - Uses
post
requests
-
- Httparty included into poro class
- Uses
get
requests - Two ways to pass params to get, inline on the url or in query hash
-
- Rescue errors due to parsing response
-
Download file using stream mode
- Uses
get
requests - Uses
stream_body
mode - Download file without using the memory
- Uses
-
- Basic Auth
- Uses
post
requests - Uses multipart
-
- Multipart data upload (with and without file)
-
- Uses
body_stream
to upload file
- Uses
-
Accessing x509 Peer Certificate
- Provides access to the server's TLS certificate
-
- Uses a
get
request with an International domain names, which are Urls with emojis and non-ASCII characters such as accented letters.
- Uses a