The HTTParty parsed_response
method returns a hash if you get a 200 response code, but otherwise it will return a string regardless of whether the web server returns an XML response.
HTTParty.get(post_url).parsed_response.class # Depends on response code
Amazon will provide XML (explaining what went wrong) even at 403.
Did I miss something?
Chris cummings
source share