Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Trac Trac
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Legacy
  • TracTrac
  • Issues
  • #27821

Closed (moved)
(moved)
Open
Created Sep 22, 2018 by traumschule@traumschule

HTTPTunnelPort "405 Method Not Allowed" page should say "this is not an HTTP Proxy"

Using HTTPTunnelPort gives "Method Not Allowed" for http and ftp with wget and curl. If this usage is not supported we should expand the 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
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking