[tor-bugs] #27821 [Core Tor/Tor]: HTTP tunnel error: saying "HTTP/1.0 405 Method Not Allowed

Tor Bug Tracker & Wiki blackhole at torproject.org
Sat Sep 22 15:48:11 UTC 2018


#27821: HTTP tunnel error: saying "HTTP/1.0 405 Method Not Allowed
------------------------------+--------------------
     Reporter:  traumschule   |      Owner:  (none)
         Type:  defect        |     Status:  new
     Priority:  Medium        |  Milestone:
    Component:  Core Tor/Tor  |    Version:
     Severity:  Normal        |   Keywords:
Actual Points:                |  Parent ID:  #26470
       Points:                |   Reviewer:
      Sponsor:                |
------------------------------+--------------------
 Using HTTPTunnelPort gives "Method Not Allowed" for http and ftp with wget
 and curl. If this usage is not supported we should expand the
 [https://www.torproject.org/docs/tor-manual#HTTPTunnelPort manual] to show
 how to use it correctly.

 tor.info.log
 > [info] {NET} connection_handle_listener_read(): New SOCKS connection
 opened from 127.0.0.1.
 > [info] {EDGE} connection_ap_process_http_connect(): HTTP tunnel error:
 saying "HTTP/1.0 405 Method Not Allowed\r\n\r\n"
 > [info] {NET} connection_handle_listener_read(): New SOCKS connection
 opened from 127.0.0.1.
 > [info] {EDGE} connection_ap_process_http_connect(): HTTP tunnel error:
 saying "HTTP/1.0 405 Method Not Allowed\r\n\r\n"

 wget
 {{{
 $ http_proxy=127.0.0.1:9099 ftp_proxy=$http_proxy wget ftp://debian.org
 http://debian.org
 --2018-09-22 17:34:47--  ftp://debian.org/
 Connecting to 127.0.0.1:9099... connected.
 Proxy request sent, awaiting response... 405 Method Not Allowed
 2018-09-22 17:34:47 ERROR 405: Method Not Allowed.

 --2018-09-22 17:34:47--  http://debian.org/
 Connecting to 127.0.0.1:9099... connected.
 Proxy request sent, awaiting response... 405 Method Not Allowed
 2018-09-22 17:34:47 ERROR 405: Method Not Allowed.
 }}}

 curl
 {{{
 $ http_proxy=127.0.0.1:9099 ftp_proxy=$http_proxy  curl -v
 ftp://debian.org http://debian.org
 * Rebuilt URL to: ftp://debian.org/
 * Uses proxy env variable ftp_proxy == '127.0.0.1:9099'
 *   Trying 127.0.0.1...
 * TCP_NODELAY set
 * Connected to 127.0.0.1 (127.0.0.1) port 9099 (#0)
 > GET ftp://debian.org/ HTTP/1.1
 > Host: debian.org:21
 > User-Agent: curl/7.61.0
 > Accept: */*
 > Proxy-Connection: Keep-Alive
 >
 * HTTP 1.0, assume close after body
 < HTTP/1.0 405 Method Not Allowed
 <
 * Closing connection 0
 * Rebuilt URL to: http://debian.org/
 * Uses proxy env variable http_proxy == '127.0.0.1:9099'
 * Hostname 127.0.0.1 was found in DNS cache
 *   Trying 127.0.0.1...
 * TCP_NODELAY set
 * Connected to 127.0.0.1 (127.0.0.1) port 9099 (#1)
 > GET http://debian.org/ HTTP/1.1
 > Host: debian.org
 > User-Agent: curl/7.61.0
 > Accept: */*
 > Proxy-Connection: Keep-Alive
 >
 * HTTP 1.0, assume close after body
 < HTTP/1.0 405 Method Not Allowed
 <
 * Closing connection 1
 }}}

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/27821>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list