the AJAX login script
var xhr1 = new XMLHttpRequest(); xhr1.open("post", 'https://192.168.1.1/index/login.cgi', false); xhr1.send("Username=admin&Password=6836394be82df057e085fc344c6179d1b50b30224ad0SJ0GQrNWmpsXCSk5so7o73f93282&challange=SJ0GQrNWmpsXCSk5so7o");
the problem is it gives me this error
Login Failure: Browser did not support Cookie. Please enable Cookie
and i can't send a cookie header cause it's a Forbidden header name ..... the page after i press login it sets the required cookies to perform a login . is there any way around this ?
some lines from the page source code that i think are important
var strCookie = document.cookie; document.cookie = cookie; var cookie = "Language=en" + expires + "; var results = document.cookie.match ( '(^|;) ?' + cookie_name + '=([^;]*)(;|$)' );