net-http icon indicating copy to clipboard operation
net-http copied to clipboard

Net::HTTP provides a rich library which can be used to build HTTP user-agents.

Results 71 net-http issues
Sort by recently updated
recently updated
newest added

We've identified an issue in the current release of net-http (0.3.2). When setting a 'Content-Type' header on a POST request like so: `request['Content-Type'] = 'application/json'` It does set the header,...

When specifying a URI with an IPv6 address as the host, the Host header of the request contains the IPv6 address but it is not surrounded by brackets e.g. With...

We've been seeing some of our background jobs hang on jobs that use net-http. Here's 2 backtraces: This is from using S3's `put_object` call: ``` /usr/lib/fullstaq-ruby/versions/3.2.2/lib/ruby/3.2.0/net/http.rb:1271:in `initialize' /usr/lib/fullstaq-ruby/versions/3.2.2/lib/ruby/3.2.0/net/http.rb:1271:in `open' /usr/lib/fullstaq-ruby/versions/3.2.2/lib/ruby/3.2.0/net/http.rb:1271:in...

I had noticed that `Net::HTTP` is splitting on a `Regexp` in the headers file, so wanted to put in a quick patch on that. Here's some of the performance data...

This fixes two bugs I found when `force_response_body_encoding` (#17) is enabled. 1. `scanning_meta` only checks the first `meta` element 2. an attribute with no content (for example, ``) breaks `get_attribute`...

### Context Since OpenSSL 3.x, when a server close the TCP connection without first calling `SSL_shutdown`, the SSL client now error with `SSL_read: unexpected eof while reading`. In OpenSSL 1.x,...

We noticed a thread deadlock issue with Ruby debug after our net/http version changed from `0.2.0` to `0.3.0`. ![Screenshot 2023-05-03 at 13 13 18](https://user-images.githubusercontent.com/13201458/236007195-52e9a07c-621c-4f3b-a786-44fbfcc4f03d.png) When you are in the breakpoint...

`Timeout.timeout` is inefficient because it spins up a new thread for each invocation, and can be unsafe (see https://www.mikeperham.com/2015/05/08/timeout-rubys-most-dangerous-api/ and http://blog.headius.com/2008/02/ruby-threadraise-threadkill-timeoutrb.html) Since we can set open timeouts on sockets now,...