open-uri icon indicating copy to clipboard operation
open-uri copied to clipboard

OpenURI is an easy-to-use wrapper for Net::HTTP, Net::HTTPS and Net::FTP.

Results 9 open-uri issues
Sort by recently updated
recently updated
newest added

Hi! This PR documents the `:max_redirects` option and applies a default (as seemed the intention from https://github.com/ruby/open-uri/pull/18#discussion_r1388174396), as it looks like it's not being applied currently. Thanks!

This approach will handle the Set-Cookie header during the redirect. To avoid redirect loops for arbitrary cookies and the same URI, it will not redirect to an URI more than...

net/http (and by extension open-uri) by default retries GET requests one time (max_retries = 1). It would be great if this setting could be altered through open-uri. It is already...

The other day I discovered an `ignore_eof` setting that was added to `Net::HTTP` and `Net::HTTPResponse` in https://github.com/ruby/net-http/pull/15 Was wondering it makes sense for open-uri to expose setting `ignore_eof` via `options`...

Putting up a feature request to allow passing in an option or something to permit redirects from https links to http. I realize there are some security considerations here, but...

It's quite a common task to check whether a URI leads to a dead end or not. For a "simple" HEAD request, handling the many edge cases (SSL, proxy etc)...

When redirects occur, the Authorization header containing authorization information is transferred to the redirect destination host. This can expose sensitive credentials to unintended hosts, posing a security risk. I will...

For instance: ``` require 'open-uri' URI.open("https://old.reddit.com/comments/1i8cnq3") ``` Will throw: ``` rfc3986_parser.rb:84:in `split': URI must be ascii only "https://old.reddit.com/r/france/comments/1i8cnq3/reddit_ninterf\xC3\xA8rera_pas_avec_les_utilisateurs/" (URI::InvalidURIError) ```

Ruby's [`IO#read`](https://ruby-doc.org/3.4.1/IO.html#method-i-read) declares 2 parameters: `def read(maxlen = nil, out_string = nil)`. `OpenURI::OpenRead` declares a single Hash parameter: https://github.com/ruby/open-uri/blob/0523bdb6b2bf2931bb4774718ada4da3ce7617b5/lib/open-uri.rb#L812 Marcel, a mime-type detection library, expects to use the 2 parameter...