Forum: Ruby HTTP client with zip compression for Ruby

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
unknown (Guest)
on 2006-02-15 03:16
(Received via mailing list)
Is there any client for Ruby capable of doing HTTP with gzip
compression?
unknown (Guest)
on 2006-02-16 06:20
(Received via mailing list)
Can anyone direct me here?
Timothy G. (Guest)
on 2006-02-16 08:03
(Received via mailing list)
You may need to combine an HTTP socket with ZLib by yourself. You could
simply analyse the headers for the Content-encoding and use
ZLib::inflate on the body if it equals 'gzip'. It shouldn't be hard at
all.
This topic is locked and can not be replied to.