summaryrefslogtreecommitdiff
path: root/www/ruby-httpclient
AgeCommit message (Collapse)AuthorFilesLines
2012-05-07Update ruby-httpclient to 2.2.5.obache3-7/+10
= Changes in 2.2.5 = May 06, 2012 - version 2.2.5 * Bug fixes * Added Magic encoding comment to hexdump.rb to avoid encoding error. * Add workaround for JRuby issue on Windows (JRUBY-6136) On Windows, calling File#size fails with an Unknown error (20047). This workaround uses File#lstat instead. * Require open-uri only on ruby 1.9, since it is not needed on 1.8. * Features * Allow symbol Header name for HTTP request. * Dump more SSL certificate information under $DEBUG. * Add HTTPClient::SSLConfig#ssl_version property. * Add 'Accept: */*' header to request by default. Rails requies it. It doesn't override given Accept header from API. * Add HTTPClient::SSLConfig#set_default_paths. This method makes HTTPClient instance to use OpenSSL's default trusted CA certificates. * Allow to set Date header manually. ex. clent.get(uri, :header => {'Date' => Time.now.httpdate})
2011-12-08Update ruby-httpclient to 2.2.4.obache2-6/+6
= Changes in 2.2.4 = Dec 08, 2011 - version 2.2.4 * Bug fixes * Do not recycle buffer String object for yielding. When the response is not chunked and the size of the response > 16KB, API with block style yields recycled String object for each yields. * Set VERSION string in User-Agent header. $Id$ didn't work long time... Bugs are reported by Seamus Abshere. Thanks!
2011-10-29Update ruby-httpclient to 2.2.3.obache2-6/+6
= Changes in 2.2.3 = Oct 28, 2011 - version 2.2.3 * Bug fixes * Ruby 1.8.6 support. It's broken from 2.2.0.
2011-10-17Update ruby-httpclient to 2.2.2.obache3-11/+10
While here, install document again. == Changes = Changes in 2.2.2 = Oct 17, 2011 - version 2.2.2 * Bug fixes * Do not sort query params on request: Wrongly sorted query params for easier debugging but the order of request parameter should be preserved. #65 * Changes * Set responce String encoding if possible. Parse content-type response header with some helps from OpenURI::Meta and set response String encoding. #26 * Improve connection cache strategy. Reuse cached session in MRU order, not in LRU. MRU is more server friendly than LRU because it reduces number of cached sessions when a number of requests drops after an usaage spike. With reusing sessions in LRU order, all sessions are equally checked if it's closed or not, as far as there's a request to the same site. With reusing sessions in MRU order, old cold sessions are kept in cache long time even if there's a request to the same site. To avoid this leakage, this version adds keep_alive_timeout property and let SessionManager scrub all sessions with checking the timeout for each session. When the session expires against the last used time, it's closed and collected. keep_alive_timeout is 15[sec] by default. The value is from the default value for KeepAliveTimeout of Apache httpd 2. #68 #69
2011-06-03Update ruby-httpclient to 2.2.1.obache3-17/+42
== Changes = Changes in 2.2.1 = Jun 2, 2011 - version 2.2.1 * Bug fixes * For Lighttpd + PUT/POST support, do not send a request using chunked encoding when IO respond to :size, File for example. - There is no need to send query with Transfer-Encoding: chuncked when IO respond to :size. - Lighttpd does not support PUT, POST with Transfer-Encoding: chuncked. You will see that the lighty respond with 200 OK, but there is a file whose size is zero. LIMITATION: timeout occurs certainly when you send very large file and @send_timeout is default since HTTPClient::Session#query() assumes that *all* write are finished in @send_timeout sec not each write. WORKAROUND: increment @send_timeout and @receive_timeout or set @send_timeout and @receive_timeout to 0 not to be timeout. This fix is by TANABE Ken-ichi <nabeken@tknetworks.org>. Thanks! * Allow empty http_proxy ENV variable. Just treat it the same as if it's nil/unset. This fix is by Ash Berlin <ash_github@firemirror.com>. Thanks! * Check EOF while reading chunked response and close the session. It raised NoMethodError. * Changes * Updated trusted CA certificates file (cacert.p7s and cacert_sha1.p7s). CA certs are imported from 'Java(TM) SE Runtime Environment (build 1.6.0_25-b06)'. * Changed default chunk size from 4K to 16K. It's used for reading size at a time.
2011-05-27Update ruby-httpclient to 2.2.0.2.obache2-6/+10
(temporary disable RI/RDOC, rise error with ruby18). * restore webmock compatibility * keyword_argument should accept nil as a value
2011-04-19Update ruby-httpclient to 2.2.0.1.obache2-6/+6
* Fix webmock compatibility.
2011-04-15Update ruby-httpclient to 2.2.0.obache4-48/+36
switch to use gem. = Changes in 2.2.0 = Apr 8, 2011 - version 2.2.0 * Features * Add HTTPClient#cookies as an alias of #cookie_manager.cookies. * Add res.cookies method. It returns parsed cookie in response header. It's different from client.cookie_manager.cookies. Manager keeps persistent cookies in it. * Add res.headers method which returns a Hash of headers. Hash key and value are both String. Each key has a single value so you can't extract exact value when a message has multiple headers like 'Set-Cookie'. Use header['Set-Cookie'] for that purpose. (It returns an Array always) * Allow keyword style argument for HTTPClient#get, post, etc. Introduced keywords are: :body, :query, and :header. You can write HTTPClient.get(uri, :header => {'X-custom' => '1'}) instead of; HTTPClient.get(uri, nil, {'X-custom' => '1'}) * Add new keyword argument :follow_redirect to get/post. Now you can follow redirection response with passing :follow_redirect => true. * [INCOMPAT] Rename HTTPClient::HTTP::Message#body to #http_body, then add #body as an alias of #content. It's incompatible change though users rarely depends on this method. (I've never seen such a case) Users who are using req.body and/or res.body should follow this change. (req.http_body and res.http_body) * Bug fixes * Reenable keep-alive for chunked response. This feature was disabled by c206b687952e1ad3e20c20e69bdbd1a9cb38609e at 2008-12-09. I should have written a test for keep-alive. Now I added it. Thanks Takahiro Nishimura(@dr_taka_n) for finding this bug. = Changes in 2.1.7 = Mar 22, 2011 - version 2.1.7 * Features * Add MD5-sess auth support. Thanks to wimm-dking. (#47) * Add SNI support. (Server Name Indication of HTTPS connection) (#49) * Add GSSAPI auth support using gssapi gem. Thanks to zenchild. (#50) * NTLM logon to exchange Web Services. [experimental] Thanks to curzonj and mccraigmccraig (#52) * Add HTTPOnly cookie support. Thanks to nbrosnahan. (#55) * Add HTTPClient#socket_local for specifying local binding hostname and port of TCP socket. Thanks to icblenke.
2011-02-25Import ruby-httpclient-2.1.6.1 as www/ruby-httpclient.obache5-0/+65
'httpclient' gives something like the functionality of libwww-perl (LWP) in Ruby. 'httpclient' formerly known as 'http-access2'.