Jeff Trawick wrote:
probably obvious to those doing the load balancing work, but just in case...
url in this case is ip:port, which ap_proxy_get_balancer() doesn't handle
simple working testcase in case this helps testing
connect and send "CONNECT 0.0.0.0:8080\r\n"
Do we need balancer for CONNECT?
get back:
00000000: 48545450 2F312E30 20323030 20436F6E HTTP/1.0 200 Con
00000010: 6E656374 696F6E20 45737461 626C6973 nection Establis
00000020: 6865640D 0A50726F 78792D61 67656E74 hed..Proxy-agent
00000030: 3A204170 61636865 2F322E30 2E35302D : Apache/2.0.50-
00000040: 64657620 28556E69 78292044 41562F32 dev (Unix) DAV/2
00000050: 0D0A0D0A
send "GET / HTTP/1.1\r\nHost: foo\r\n\r\n"
get back normal response (here is start):
00000000: 48545450 2F312E31 20323030 204F4B0D HTTP/1.1 200 OK.
00000010: 0A446174 653A2053 61742C20 31342041 .Date: Sat, 14 A
00000020: 75672032 30303420 31353A32 333A3033 ug 2004 15:23:03
00000030: 20474D54 0D0A5365 72766572 3A204170 GMT..Server: Ap
00000040: 61636865 2F322E30 2E35302D 64657620 ache/2.0.50-dev
00000050: 28556E69 78292044 41562F32 0D0A4C61 (Unix) DAV/2..La
00000060: 73742D4D 6F646966 6965643A 20467269 st-Modified: Fri
00000070: 2C203034 204D6179 20323030 31203030 , 04 May 2001 00
00000080: 3A30313A 31382047 4D540D0A 45546167 :01:18 GMT..ETag
00000090: 3A202263 6336622D 3562302D 34303434 : "cc6b-5b0-4044
needs AllowConnect directive specifying whatever port you wish to CONNECT to