code_21722.txt
вот пробую но ответа из порта нету.
------------ Дoбавленo в 20.23:
Ivann писал(а): Авторизация таким видом протоколом не поддерживается, это всего лишь инициатива браузера.
Я знаю что не везде так можно авторизоваться, но в данном случае любая качалка качает эту страницу по этой ссылке, а компонет Http_get не может её скачать.
------------ Дoбавленo в 00.38:
Незнаю башка уже кипит, я так понял, что на разных сайтах нужны разные пост запросы формировать.
Помогите кто может вот страница которую нужно качнуть с авторизацией.
------------ Дoбавленo в 00.36:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns:v> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta HTTP-EQUIV="Pragma" CONTENT="no-cache"> <meta HTTP-EQUIV="Expires" CONTENT="-1"> <title>ASUS Wireless Router WL-520GU - Карта сети</title> <link rel="stylesheet" type="text/css" href="index_style.css"> <link rel="stylesheet" type="text/css" href="form_style.css"> <link rel="stylesheet" type="text/css" href="NM_style.css"> <link rel="stylesheet" type="text/css" href="other.css"> <style type="text/css"> .style1 {color: #006633} .style4 {color: #333333} .style5 { color: #CC0000; font-weight: bold; } </style>
<script type="text/javascript" src="/state.js"></script> <script type="text/javascript" src="/popup.js"></script> <script type="text/javascript" src="/client_function.js"></script> <script type="text/javascript" src="/help.js"></script> <script type="text/javascript" src="/js/ex_overlib.js"></script> <script type="text/javascript" src="/detect.js"></script> <script> wan_route_x = 'IP_Routed'; wan_nat_x = '1'; wan_proto = 'pppoe';
openHint = null; // disable the openHint().
function wanlink_status() { return 1;} function wanlink_statusstr() { return 'Connected';} function wanlink_type() { return 'PPPOE';} function wanlink_ipaddr() { return '109.184.169.20';} function wanlink_netmask() { return '255.255.255.255';} function wanlink_gateway() { return '109.184.128.1';} function wanlink_dns() { return '213.177.96.1 213.177.97.1';}
function printer_manufacturers() { return []; } function printer_models() { return []; } function printer_serialn() { return []; } function printer_pool() { return [""]; }
var flag = ''; var device_number = Math.min(1, printer_models().length);
// for client_function.js function is_logined() { return 1; } function login_ip_dec() { return '33663168'; } function login_ip_str() { return '192.168.1.2'; } function login_ip_str_now() { return '192.168.1.2'; } function login_mac_str() { return '00:1D:60:B9:A7:97'; }
var leases = [["", "00:1D:60:B9:A7:97", "192.168.1.2", "Manual"], ["", "00:80:48:46:4C:6D", "192.168.1.3", "Manual"], ["", "1C:BD:B9:E0:06:03", "192.168.1.4", "79371"]]; // [[hostname, MAC, ip, lefttime], ...] var arps = [["192.168.1.2", "0x1", "0x2", "00:1D:60:B9:A7:97", "*", "br0"], ["192.168.1.3", "0x1", "0x0", "00:80:48:46:4C:6D", "*", "br0"], ["192.168.1.4", "0x1", "0x2", "1C:BD:B9:E0:06:03", "*", "br0"]]; // [[ip, x, x, MAC, x, type], ...] var arls = [["00:1d:60:b9:a7:97", "01", "a0", "00"]]; // [[MAC, port, x, x], ...] var wireless = [["1C:BD:B9:E0:06:03", "Yes", "Yes"]]; // [[MAC, associated, authorized], ...] var ipmonitor = [["192.168.1.2", "00:1D:60:B9:A7:97", "‚‹Ђ„€Њ€ђ ", "1", "0", "0", "0"], ["192.168.1.4", "1C:BD:B9:E0:06:03", "SMP8653 ", "6", "0", "0", "0"], ["192.168.1.3", "00:80:48:46:4C:6D", null, "6", "0", "0", "0"]]; // [[IP, MAC, DeviceName, Type, http, printer, iTune], ...] var networkmap_fullscan = 'done'; //2008.07.24 Add. 1 stands for complete, 0 stands for scanning.;
var clients = getclients(1);
function initial(){ show_banner(0); show_menu(1, 0, 0); show_footer(); show_usb_device(); show_middle_status(); set_default_choice(); MapUnderAPmode(); }
function set_default_choice(){ var icon_name; if(flag && flag.length > 0 && wan_route_x != "IP_Bridged"){ if(flag == "Internet") $("statusframe").src = "/device-map/internet.asp"; else if(flag == "Client") $("statusframe").src = "/device-map/clients.asp"; else{ clickEvent($("iconRouter")); return; } icon_name = "icon"+flag; clickEvent($(icon_name)); } else clickEvent($("iconRouter")); }
function showMapWANStatus(flag){ if(flag == 2){ showtext($("internetStatus"), "AP mode"); } else if(flag == 1){ showtext($("internetStatus"), "Подключено"); $("ifconnect").style.display = "none"; if($("HSDPA_status")){ showtext($("HSDPA_status"), "Подключено"); } } else{ showtext($("internetStatus"), "Отключено"); $("ifconnect").style.display = "block"; if($("HSDPA_status")){ showtext($("HSDPA_status"), "Отключено"); } } }
function show_middle_status(){ if(ssid2.length > 15){ ssid2 = ssid2.substring(0,14) + "..."; } $("SSID").value = ssid2; var auth_mode = document.form.wl_auth_mode.value; var wpa_mode = document.form.wl_wpa_mode.value; var wl_wep_x = parseInt(document.form.wl_wep_x.value); var security_mode; if(auth_mode == "open"){ security_mode = "Open System"; if(wl_wep_x == 0) $("iflock").style.background = 'url(images/unlock_icon.gif) no-repeat'; } else if(auth_mode == "shared") security_mode = "Shared Key"; else if(auth_mode == "psk"){ if(wpa_mode == "1") security_mode = "WPA-Personal"; else if(wpa_mode == "2") security_mode = "WPA2-Personal"; else if(wpa_mode == "0") security_mode = "WPA-Auto-Personal"; else alert("System error for showing auth_mode!"); } else if(auth_mode == "wpa"){ if(wpa_mode == "3") security_mode = "WPA-Enterprise"; else if(wpa_mode == "4") security_mode = "WPA-Auto-Enterprise"; else alert("System error for showing auth_mode!"); } else if(auth_mode == "wpa2") security_mode = "WPA2-Enterprise"; else if(auth_mode == "radius") security_mode = "Radius with 802.1x"; else alert("System error for showing auth_mode!"); $("wl_securitylevel_span").innerHTML = security_mode; $("iflock").style.display = "block"; // clients show_client_status(); }
function show_client_status(){ var client_str = ""; var wired_num = 0, wireless_num = 0; if(wan_route_x != "IP_Bridged"){ /*for(var i = 0; i < clients.length; ++i){ if(clients[i][3] == 10) ++wireless_num; else ++wired_num; } client_str += "Проводные клиенты: <span>"+wired_num+"</span>"; client_str += "<br>"; client_str += "Беспроводные клиенты: <span>"+wireless_num+"</span>";//*/ client_str += "Клиенты: <span>"+clients.length+"</span>"; } else client_str += "Отключить состояние клиента"; $("clientNumber").innerHTML = client_str; }
function show_usb_device(){ var usb_path1 = ''; switch(usb_path1){ case "printer": printer_html(0, 0); break; case "HSDPA": HSDPA_html(0, 0); break; case "storage": case "audio": case "webcam": default: no_device_html(0); } }
function printer_html(device_order, printer_order){ var printer_name = printer_manufacturers()[printer_order]+" "+printer_models()[printer_order]; var printer_status = ""; var device_icon = $("deviceIcon_"+device_order); var device_dec = $("deviceDec_"+device_order); var icon_html_code = ''; var dec_html_code = ''; if(printer_pool()[printer_order] != "") printer_status = 'Включено'; else printer_status = 'Отключено'; icon_html_code += '<a href="device-map/printer.asp" target="statusframe">\n'; icon_html_code += ' <div id="iconPrinter_'+printer_order+'" class="iconPrinter" onclick="clickEvent(this);"></div>\n'; icon_html_code += '</a>\n'; dec_html_code += printer_name+'<br>\n'; dec_html_code += '<span class="style5">'+printer_status+'</span>\n'; device_icon.innerHTML = icon_html_code; device_dec.innerHTML = dec_html_code; }
function HSDPA_html(device_order, HSDPA_order){ var HSDPA_name = ""; var device_icon = $("deviceIcon_"+device_order); var device_dec = $("deviceDec_"+device_order); var icon_html_code = ''; var dec_html_code = ''; var RadioStrength = ''; //иЁЉи™џеј·еє¦ RadioStrength = "5"; icon_html_code += '<a href="device-map/HSDPA.asp" target="statusframe">\n'; icon_html_code += ' <div id="iconHSDPA_'+HSDPA_order+'" class="iconHSDPA" onclick="clickEvent(this);"></div>\n'; icon_html_code += '</a>\n'; dec_html_code += HSDPA_name+'<br>\n'; dec_html_code += '<span id="HSDPA_status"></span>\n'; dec_html_code += '<br>\n'; dec_html_code += '<img src="images/signal_'+ RadioStrength +'.gif" align="middle" title="Base Station Signal Strength">'; device_icon.innerHTML = icon_html_code; device_dec.innerHTML = dec_html_code; }
function no_device_html(device_order){ var device_icon = $("deviceIcon_"+device_order); var device_dec = $("deviceDec_"+device_order); var icon_html_code = ''; var dec_html_code = ''; icon_html_code += ' <div class="iconNo"></div>'; dec_html_code += '<span class="account style4">Устройство отсутствует</span>\n'; device_icon.innerHTML = icon_html_code; device_dec.innerHTML = dec_html_code; }
function MapUnderAPmode(){// if under AP mode, disable the Internet icon and show hint when mouseover. if(wan_route_x == "IP_Bridged"){ showMapWANStatus(2); $("iconInternet").style.display = "none"; $("iconAPmode").style.display = "block"; $("clientStatusLink").href = "javascript:void(0)"; $("clientStatusLink").style.cursor = "default"; $("iconClient").style.background = "url(images/map-iconClient_0.gif) no-repeat"; $("iconClient").style.cursor = "default"; } }
var avoidkey; var lastClicked; var lastName;
function clickEvent(obj){ var icon; var ContainerWidth; var stitle; if(obj.id == "iflock"){ obj = $("iconRouter"); } if(obj.id.indexOf("Internet") > 0){ icon = "iconInternet"; ContainerWidth = "300px"; stitle = "Состояние Рнтернета"; } else if(obj.id.indexOf("Router") > 0){ icon = "iconRouter"; ContainerWidth = "300px"; stitle = "ASUS WL-520GU"; } else if(obj.id.indexOf("Client") > 0){ if(wan_route_x == "IP_Bridged") return; icon = "iconClient"; ContainerWidth = "396px"; stitle = "Состояние клиентов"; } else if(obj.id.indexOf("HSDPA") > 0){ icon = "iconHSDPA"; ContainerWidth = "300px"; stitle = "HSDPA Статус"; } else if(obj.id.indexOf("Printer") > 0){ icon = "iconPrinter"; ContainerWidth = "300px"; stitle = "Состояние принтера"; } else if(obj.id.indexOf("No") > 0){ icon = "iconNo"; } else alert("mouse over on wrong place!"); $('statusContainer').style.width = ContainerWidth; if(lastClicked){ lastClicked.style.background = 'url(images/map-'+lastName+'.gif) no-repeat'; } obj.style.background = 'url(images/map-'+icon+'_d.gif) no-repeat'; //$('statusIcon').src = 'images/iframe-'+icon+'.gif'; $('statusIcon').style.background = "url(images/iframe-"+ icon +".gif) no-repeat"; $('helpname').innerHTML = stitle; avoidkey = icon; lastClicked = obj; lastName = icon; }
function apmode_hint(){ return overlib("Р’ режиме точки доступа WL-520GU отключает функцию Рнтернета.", RIGHT); } </script> </head>
<body onload="initial();"> <noscript> <div class="popup_bg" style="display:block"> <div style="margin:200px auto; width:300px; background-color:#006699; color:#FFFFFF; line-height:150%; border:3px solid #FFF; padding:5px;">Ваш браузер не поддерживает JavaScript. Выберите браузер, поддерживающий JavaScript, или включите поддержку многофункционального маршрутизатора ASUS WL-520GU.</p></div> </div> </noscript>
<div id="TopBanner"></div>
<div id="Loading" class="popup_bg"></div> <div id="hiddenMask" class="popup_bg"> <table cellpadding="5" cellspacing="0" id="dr_sweet_advise" class="dr_sweet_advise" align="center"> <tr> <td> <div class="drword" id="drword">Подождите, Выполнение... <br> <br> </div> <div class="drImg"><img src="images/DrsurfImg.gif"></div> <div style="height:70px; "></div> </td> </tr> </table> <!--[if lte IE 6.5]><iframe class="hackiframe"></iframe><![endif]--> </div>
<iframe name="hidden_frame" id="hidden_frame" width="0" height="0" frameborder="0" scrolling="no"></iframe>
<form name="form"> <input type="hidden" name="current_page" value="/"> <input type="hidden" name="next_page" value="/"> <input type="hidden" name="preferred_lang" id="preferred_lang" value="RU"> <input type="hidden" name="wl_ssid2" value="ESAUL"> <input type="hidden" name="firmver" value="3.0.1.4">
<input type="hidden" name="wl_auth_mode" value="psk"> <input type="hidden" name="wl_wpa_mode" value="1"> <input type="hidden" name="wl_wep_x" value="0"> </form>
<table class="content" align="center" cellpadding="0" cellspacing="0"> <tr> <td valign="top" width="23"><div id="Dr_body"></div></td> <!--=====Beginning of Main Menu=====--> <td valign="top" width="202"> <div id="mainMenu"></div> <div id="subMenu"></div> </td> <td align="center" valign="top" class="bgarrow"> <!--=====Beginning of Network Map=====--> <div id="tabMenu"></div><br> <table width="350" border="0" cellspacing="0" cellpadding="0"> <tr align="left"> <td colspan="2"><table border="0" cellpadding="0" cellspacing="0" style="margin-left:100px; "> <tr> <td width="95"> <a href="device-map/internet.asp" target="statusframe"> <div id="iconInternet" onclick="clickEvent(this);"></div> </a> <div id="iconAPmode" onmouseout="return nd();" onmouseover="return apmode_hint();"></div> <div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div> </td> <td class="NMdesp"><span id="internetStatus"></span></td> </tr> </table></td> </tr> <tr align="left" valign="middle" > <td height="20" colspan="2" style="background:url(images/map-icon-arror.gif) repeat-y 98px;"><div class="ifconnect" id="ifconnect"></div></td> </tr> <tr> <td colspan="2"> <table class="NMitem" border="0" cellspacing="0" cellpadding="0" style="margin-left:100px; height:77px;"> <tr> <td width="95"> <a href="device-map/router.asp" target="statusframe"> <div id="iconRouter" onclick="clickEvent(this);"></div> </a> </td> <td class="NMdesp"> <a href="device-map/router.asp" target="statusframe"><div id="iflock" onclick="clickEvent(this);"></div></a> <div><strong>ASUS WL-520GU</strong></div> <strong>SSID</strong>: <input id="SSID" class="map_ssid" readonly=readonly onmouseover="return overlib(decodeURIComponent(document.form.wl_ssid2.value), RIGHT);" onmouseout="return nd();"><br> <strong>безопасности</strong>: <span id="wl_securitylevel_span"></span> </td> </tr> </table> </td> </tr> <tr> <td colspan="2" style="background:url(images/map-icon-arror1.gif) no-repeat 80px;"> </td> </tr> <tr> <td width="130" align="right" valign="top"> <table width="120" border="0" cellpadding="0" cellspacing="0"> <tr> <td align="center"> <a id="clientStatusLink" href="device-map/clients.asp" target="statusframe"><!--lock 1226--> <div id="iconClient" onclick="clickEvent(this);"></div></a></td> </tr> <tr> <td align="center" class="clients" id="clientNumber"></td><!--lock 1226--> </tr> </table> </td> <td align="center" class="mapgroup"> <table width="95%" border="0" cellpadding="0" cellspacing="0" style="margin-left:5px; "> <tr id="device_0"> <td width="88" height="90"> <div id="deviceIcon_0"></div> </td> <td height="90" class="NMdesp"> <div id="deviceDec_0"></div> </td> </tr> </table> </td> </tr> </table> </td> <!--=====End of Main Content=====--> <!--==============Beginning of hint content=============--> <td id="statusContainer" width="300" align="left" valign="top" > <div id="statusIcon"></div> <table width="95%" border="0" cellpadding="0" cellspacing="0"> <tr> <td class="statusTitle" valign="center"> <!--img id="statusIcon" src="images/iframe-iconRouter.gif"/--> <!--span id="helpname">ASUS WL-520GU</span--> <div id="helpname"></div> </td> </tr> <tr> <td> <iframe id="statusframe" name="statusframe" src="/device-map/router.asp" frameborder="0" width="100%" height="400"></iframe> <script> if(flag == "Internet" || flag == "Client") $("statusframe").src = ""; </script> </td> </tr> </table> </td> <!--==============Ending of hint content=============--> </tr> </table>
<div id="footer"></div> </body> </html>
|