Fast ruby http library for large XML downloads

Posted by Vlad Zloteanu on Stack Overflow See other posts from Stack Overflow or by Vlad Zloteanu
Published on 2010-05-14T11:45:59Z Indexed on 2010/05/15 10:44 UTC
Read the original article Hit count: 326

I am consuming various XML-over-HTTP web services returning large XML files (> 2MB). What would be the fastest ruby http library to reduce the 'downloading' time?

Required features:

  • both GET and POST requests

  • gzip/deflate downloads (Accept-Encoding: deflate, gzip) - very important

I am thinking between:

  • open-uri

  • Net::HTTP

  • curb

but you can also come with other suggestions.

P.S. To parse the response, I am using a pull parser from Nokogiri, so I don't need an integrated solution like rest-client or hpricot.

© Stack Overflow or respective owner

Related posts about ruby

Related posts about http