Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sites like ebay.com - chunks don't get stored in order #72

Closed
seamusabshere opened this issue Dec 7, 2011 · 0 comments
Closed

sites like ebay.com - chunks don't get stored in order #72

seamusabshere opened this issue Dec 7, 2011 · 0 comments

Comments

@seamusabshere
Copy link

Check this out:

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?

@nahi nahi closed this as completed in fe69708 Dec 7, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants