You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
require 'httpclient'
# WORKS
HTTPClient.get_content('http://www.ebay.com/itm/ws/eBayISAPI.dll?ViewItem&item=260910713854?_trksid=p5197.m1256&_trkparms=clkid%3D4726644202417880745') do |chunk|
puts chunk
end
# DOESN'T WORK - random order, missing content
body = []
HTTPClient.get_content('http://www.ebay.com/itm/ws/eBayISAPI.dll?ViewItem&item=260910713854?_trksid=p5197.m1256&_trkparms=clkid%3D4726644202417880745') do |chunk|
body << chunk
end
puts body.join
Maybe I'm not allowed to construct a body like that or something?
The text was updated successfully, but these errors were encountered:
Check this out:
Maybe I'm not allowed to construct a body like that or something?
The text was updated successfully, but these errors were encountered: