Прокси «localhost:8080» запрашивает имя пользователя и пароль. Сайт говорит: «»
Прокси «localhost:8080» запрашивает имя пользователя и пароль. Сайт говорит: «192.168.1.3»
13.04.10 16:17:39,484 # 48: Start connection from client13.04.10 16:17:39,484 # 48: Connection from 127.0.0.1:1215 to HC Version 1.00 RC3 (1.0.0.270)13.04.10 16:17:39,484 # 48: User name: local13.04.10 16:17:39,484 # 48: Connect to proxy: (aspect:80)13.04.10 16:17:39,500 # 48/334 >>> URL: http://copylefter.livejournal.com/106721.htmlGET http://copylefter.livejournal.com/106721.html HTTP/1.1Host: copylefter.livejournal.comUser-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8Accept-Language: ru,en-us;q=0.7,en;q=0.3Accept-Encoding: gzip,deflateAccept-Charset: windows-1251,utf-8;q=0.7,*;q=0.7Keep-Alive: 115Connection: keep-alive13.04.10 16:17:39,500 # 48 <<< URL: http://copylefter.livejournal.com/106721.htmlConnection to aspect:8013.04.10 16:17:39,578 # 48: Outbound Connection, Local port: 121613.04.10 16:17:39,578 # 48 <<< URL: http://copylefter.livejournal.com/106721.htmlHTTP/1.1 407 Proxy Access DeniedServer: Microsoft-IIS/4.0Date: Tue, 13 Apr 2010 12:19:58 GMTConnection: keep-aliveProxy-Authenticate: NTLMProxy-Authenticate: Basic realm="192.168.1.3"Transfer-Encoding: chunked13.04.10 16:17:39,593 # 48: IdMappedPortTCP1OutboundDisconnect: StateReady, exit13.04.10 16:17:39,750 # 48: Connect to proxy: (aspect:80)13.04.10 16:17:39,750 # 48 <<< URL: http://copylefter.livejournal.com/106721.htmlConnection to aspect:8013.04.10 16:17:39,750 # 48: Outbound Connection, Local port: 121713.04.10 16:17:39,750 # 48/335 >>> URL: http://copylefter.livejournal.com/106721.htmlGET http://copylefter.livejournal.com/106721.html HTTP/1.1Host: copylefter.livejournal.comUser-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8Accept-Language: ru,en-us;q=0.7,en;q=0.3Accept-Encoding: gzip,deflateAccept-Charset: windows-1251,utf-8;q=0.7,*;q=0.7Keep-Alive: 115Connection: keep-aliveProxy-Authorization: NTLM TlRMTVNTUAABAAAAB4IIogAAAAAAAAAAAAAAAAAAAAAFASgKAAAADw==13.04.10 16:17:39,750 # 48 <<< URL: http://copylefter.livejournal.com/106721.htmlHTTP/1.1 407 Proxy authentication requiredProxy-Authenticate: NTLM TlRMTVNTUAACAAAADgAOADAAAAAFgokAW4VErqP1cDIAAAAAAAAAACYAJgA+AAAAQQBTAFAAUgBPAFgAWQACAA4AQQBTAFAAUgBPAFgAWQABAAwAQQBTAFAARQBDAFQAAAAAAA==Content-Length: 503Content-Type: text/htmlConnection: keep-alive13.04.10 16:17:39,890 # 48: Connect to proxy: (aspect:80)13.04.10 16:17:39,890 # 48/336 >>> URL: http://copylefter.livejournal.com/106721.htmlGET http://copylefter.livejournal.com/106721.html HTTP/1.1Host: copylefter.livejournal.comUser-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8Accept-Language: ru,en-us;q=0.7,en;q=0.3Accept-Encoding: gzip,deflateAccept-Charset: windows-1251,utf-8;q=0.7,*;q=0.7Keep-Alive: 115Connection: keep-aliveProxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAGoAAAAYABgAggAAAAoACgBIAAAADAAMAFIAAAAMAAwAXgAAAAAAAACaAAAABYKIAgUBKAoAAAAPUwBQAEMAQQBTAGcAcgBhAGYAbwB2AEcAUgBBAEYATwBWAG5JJQ6XyxqhAAAAAAAAAAAAAAAAAAAAAOEQWD5KAGOz7AWaWjf9CynkR+cS+Yyuog==13.04.10 16:17:39,890 # 48 <<< URL: http://copylefter.livejournal.com/106721.htmlHTTP/1.1 502 Proxy Error ( The specified URL is denied by the proxy server. )Via: 1.1 ASPECTPragma: no-cacheCache-Control: no-cacheContent-Type: text/htmlRequest repeated113.04.10 16:17:39,890 # 48 <<< URL: http://copylefter.livejournal.com/106721.htmlRequest repeated313.04.10 16:17:39,890 # 48 <<< URL: http://copylefter.livejournal.com/106721.htmlRequest repeated413.04.10 16:17:39,890 # 48 <<< URL: http://copylefter.livejournal.com/106721.htmlSleep(ReqRepeatPause)13.04.10 16:17:42,984 # 48 <<< URL: http://copylefter.livejournal.com/106721.htmlHTTPHeader=GET http://copylefter.livejournal.com/106721.html HTTP/1.1Host: copylefter.livejournal.comUser-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8Accept-Language: ru,en-us;q=0.7,en;q=0.3Accept-Encoding: gzip,deflateAccept-Charset: windows-1251,utf-8;q=0.7,*;q=0.7Keep-Alive: 115Connection: keep-aliveProxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAGoAAAAYABgAggAAAAoACgBIAAAADAAMAFIAAAAMAAwAXgAAAAAAAACaAAAABYKIAgUBKAoAAAAPUwBQAEMAQQBTAGcAcgBhAGYAbwB2AEcAUgBBAEYATwBWAG5JJQ6XyxqhAAAAAAAAAAAAAAAAAAAAAOEQWD5KAGOz7AWaWjf9CynkR+cS+Yyuog==AnswerCode=50213.04.10 16:17:42,984 # 48 <<< URL: http://copylefter.livejournal.com/106721.htmlConnection to aspect:8013.04.10 16:17:42,984 # 48: Outbound Connection, Local port: 121813.04.10 16:17:42,984 # 48Connected to host: aspect, port: 8013.04.10 16:17:42,984 # 48 <<< URL: http://copylefter.livejournal.com/106721.htmlHTTP/1.1 407 Proxy authentication requiredProxy-Authenticate: NTLMProxy-Authenticate: Basic realm="192.168.1.3"Connection: keep-aliveContent-Length: 503Content-Type: text/html13.04.10 16:17:42,984 # 48: IdMappedPortTCP1OutboundDisconnect: StateReady, exit
--[[ <HCExtension>@name 407 to 404@version 0.02@description Заменяет 407 на 404 в заголовках ответов@event AnswerHeaderReceived/answer</HCExtension> ]]function answer() hc.answer_header = re.replace(hc.answer_header, [[\AHTTP/1\.\d \K407]], "404")end
--[[ <HCExtension>@name stop 407@version 0.03@description Блокирует ответ 407@event AnswerHeaderReceived/Answer</HCExtension> ]]function GetAnswerCode(s) _,_,x = string.find(s, "HTTP/1%.%d +(%d+)") if x==nil then return -1 else return tonumber(x) endendfunction Answer() -- выясняем код ответа из заголовка answ_code = GetAnswerCode(hc.answer_header) -- если код ответа 407 if answ_code==407 then hc.action = 'stop-' endend
--[[ <HCExtension>@name Блокирует аутентификацию Firefox-а@version 0.04@description Блокирует аутентификацию Firefox-а@event AnswerHeaderReceived/Answer</HCExtension> ]]function GetAnswerCode(s) _,_,x = string.find(s, "HTTP/1%.%d +(%d+)") if x==nil then return -1 else return tonumber(x) endendfunction Answer() -- выясняем код ответа из заголовка answ_code = GetAnswerCode(hc.answer_header) -- если код ответа 502 if answ_code==502 then hc.action = 'stop' endend