Project

General

Profile

Bug #7275

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

Added by puchuu (Andrew Aladjev) about 7 years ago. Updated about 7 years ago.

Status:
Third Party's Issue
Priority:
Normal
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:inread_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:incatch' 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:inrequest' 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:instart' 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'

History

Updated by shyouhei (Shyouhei Urabe) about 7 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.

Also available in: Atom PDF