Project

General

Profile

Bug #662

Connection using a proxy does not use correct host

Added by Luke Murphey about 11 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
10/09/2013
Due date:
% Done:

100%

History

#1 Updated by Luke Murphey about 11 years ago

This looks like this is working correctly after all.

The initial CONNECT call uses the IP address only:

CONNECT 173.255.231.182:80 HTTP/1.1
Host: 173.255.231.182

However, the GET call that follows correctly assigns a Host header with the domain:

GET / HTTP/1.1
Host: lukemurphey.net
accept-encoding: gzip, deflate
user-agent: Python-httplib2/0.7.0 (gzip)

This returns the correct website (a Redmine instance at LukeMurphey.net):

HTTP/1.1 200 OK
Date: Wed, 09 Oct 2013 18:39:52 GMT
Server: Apache/2.2.14 (Ubuntu)
X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 2.2.7
X-Rack-Cache: miss
X-UA-Compatible: IE=Edge,chrome=1
X-Request-Id: 06277ea005025fc96bc92eb40e57fea4
ETag: "560850044b35e014c68f118a5eecdae5" 
Cache-Control: max-age=0, private, must-revalidate
X-Runtime: 0.074966
Set-Cookie: _redmine_session=BAh7ByIPc2Vzc2lvbl9pZCIlZTZkM2E0OTJjOGQzM2YzOWViODFmNjRlNTRjZDY3OGQiEF9jc3JmX3Rva2VuIjErWVlkVTA2ZE9KTC91UlcvRVdKQk9UUkpXTUNWY1FqdVhGREZvaVZ0SnBVPQ%3D%3D--e61aaf7a51937b5f0494db6fd0a2768b6250367e; path=/; HttpOnly
Status: 200
Vary: Accept-Encoding
Content-Type: text/html; charset=utf-8
Content-length: 5773

#2 Updated by Luke Murphey about 11 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 80

#3 Updated by Luke Murphey about 11 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 80 to 100

Also available in: Atom PDF