Project

General

Profile

Actions

Bug #7275

closed

net/http wrong status line: "\x00HTTP/1.1 200 OK"

Added by puchuu (Andrew Aladjev) over 11 years ago. Updated over 11 years ago.

Status:
Third Party's Issue
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.3p286 (2012-10-12 revision 37165) [x86_64-linux]
Backport:
[ruby-core:48848]

Description

  1. install proxychains
  2. proxychains irb
    ProxyChains-3.1 (http://proxychains.sf.net)
    1.9.3p194 :001 > require "net/http"
    => true
    1.9.3p194 :002 > res = Net::HTTP.start("www.google.com", "80") do |http|
    1.9.3p194 :003 > http.request Net::HTTP::Get.new("/")
    1.9.3p194 :004?> end
    |S-chain|-<>-112.83.231.254:6666-<><>-74.125.232.49:80-<><>-OK
    Net::HTTPBadResponse: wrong status line: "\x00HTTP/1.1 302 Found"
    from /home/puchuu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:2564:in read_status_line' from /home/puchuu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:2551:in read_new'
    from /home/puchuu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1319:in block in transport_request' from /home/puchuu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1316:in catch'
    from /home/puchuu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1316:in transport_request' from /home/puchuu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1293:in request'
    from (irb):3:in block in irb_binding' from /home/puchuu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:745:in start'
    from /home/puchuu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:557:in start' from (irb):2 from /home/puchuu/.rvm/rubies/ruby-1.9.3-p194/bin/irb:16:in '

Updated by shyouhei (Shyouhei Urabe) over 11 years ago

  • Status changed from Open to Third Party's Issue

Can't reproduce without proxychain.

I believe this is a proxychain issue, or at least you are using it in wrong way.

Please consult proxychain's docs or issue tracker or whatever.

Actions

Also available in: Atom PDF

Like0
Like0