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

This change proposes changing the exception class used when invalid syntax is used in a HTTP Header from ArgumentError to Net::HTTPHeaderSyntaxError. The reason I am proposing this change is to...

[http.rb](https://github.com/ruby/net-http/blob/v0.2.2/lib/net/http.rb#L1225) use RUBY_PLATFORM to decide the source of username/ password of the proxy. RUBY_PLATFORM of jruby is `java`. It blocks jruby user from using proxy with env variable ruby --version...

Hello. I am trying to fetch against an s3 URL on an M1 mac, and am running into an error. Implementation: ``` response = Net::HTTP.get_response(URI(fetch_url)) if response.is_a?(Net::HTTPSuccess) JSON.parse(response.body) else raise...

Since the code used with `SSL_IVNAMES` and `SSL_ATTRIBUTES` is tested, there isn't a need for a specific test, as it's setting SSLContext attributes.

I am experiencing this issue on a Windows machine. Original issue filed with Windows Ruby installer: https://github.com/oneclick/rubyinstaller2/issues/264 It seems that the change from `TcpSocket` to `Socket` (https://github.com/ruby/net-http/pull/10) released in Ruby...

I installed net-http gem , later it raised this error several times: FrozenError can't modify frozen OpenSSL::SSL::SSLContext: # Rails 7.0.1 ruby 2.7.5 net-http 0.2.0

Hey, I think I've found an issue introduced with the change in #10. Changing from `TCPSocket.open` to `Socket.tcp` seems to break the functionality of resolv-replace. Not sure if this was...

Hi, it's a common practice and used in an increasing number or projects to offer HTTP interfaces, especially REST APIs, over unix domain sockets instead of regular TCP, for several...

I first noticed this because all `ruby/debug`'s tests ran against Ruby head failed with a timeout error ([example](https://github.com/ruby/debug/runs/5799401105?check_suite_focus=true)): ``` /home/runner/.rubies/ruby-head/lib/ruby/3.2.0+1/net/protocol.rb:[21](https://github.com/ruby/debug/runs/5799401105?check_suite_focus=true#step:4:21)9:in `rbuf_fill': Net::ReadTimeout with # (Net::ReadTimeout) from /home/runner/.rubies/ruby-head/lib/ruby/3.2.0+1/net/protocol.rb:181:in `read_all' from /home/runner/.rubies/ruby-head/lib/ruby/3.2.0+1/net/http/response.rb:433:in...

Hi there, While I was reading the [`request_get` documentation](https://ruby-doc.org/stdlib-3.1.0/libdoc/net/http/rdoc/Net/HTTP.html#method-i-request) I noticed that it states: `This method never raises Net::* exceptions.` but looking at the code, [it seems otherwise](https://github.com/ruby/net-http/blob/fa68e64beee8ea3a9419b822ca10202822f69b5e/lib/net/http.rb#L1580). Also running...