Подскажите, пжл. Пытаюсь с помощью curl получить страничку с сервера, использующего авторизацию digest. curl -u "USER:PASS" --digest -v "http://xxx.ru/Main.aspx?Method=List" ПОлучаю отлуп: ... < HTTP/1.1 401 Unauthorized < Content-Length: 1656 < Content-Type: text/html < Server: Microsoft-IIS/6.0 < WWW-Authenicate: Digest qop="auth",algorithm=MD5-sess,nonce="***",charset=utf- 8,realm="***" < X-Powered-By: ASP.NET < Date: Tue, 25 Nov 2008 04:58:17 GMT * Ignoring the response-body * Connection #0 to host *** left intact * Issue another request to this URL: 'http://xxx.ru/Main.aspx?Method=List' * Re-using existing connection! (#0) with host *** * Connected to *** (***) port 80 * Server auth using Digest with user 'USER' > GET /Main.aspx?Method=List HTTP/1.1 > Authorization: Digest username="USER", realm="***", nonce="***", uri="/Main.aspx?Method=List", cnonce="MTIyNzU4", nc=00000001, qop="auth", response="***", algorithm="MD5-sess" > User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0) > Host: *** > Accept: */* >< HTTP/1.1 401 Unauthorized < Content-Length: 1539 < Content-Type: text/html < Server: Microsoft-IIS/6.0 * Authentication problem. Ignoring this. < WWW-Authenticate: Digest qop="auth",algorithm=MD5-sess,nonce="***",charset=utf-8,realm="***" < X-Powered-By: ASP.NET < Date: Tue, 25 Nov 2008 04:58:17 GMT <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <HTML><HEAD><TITLE>You are not authorized to view this page</TITLE> <META HTTP-EQUIV="Content-Type" Content="text/html; charset=Windows-1252"> <STYLE type="text/css"> BODY { font: 8pt/12pt verdana } H1 { font: 13pt/15pt verdana } H2 { font: 8pt/12pt verdana } A:link { color: red } A:visited { color: maroon } </STYLE> </HEAD><BODY><TABLE width=500 border=0 cellspacing=10><TR><TD> <h1>You are not authorized to view this page</h1> You do not have permission to view this directory or page using the credentials that you supplied. <hr> <p>Please try the following:</p> <ul> <li>Contact the Web site administrator if you believe you should be able to view this directory or page.</li> <li>Click the <a href="javascript:location.reload()">Refresh</a> button to try again with different credentials.</li> </ul> <h2>HTTP Error 401.1 - Unauthorized: Access is denied due to invalid credentials. Internet Information Services (IIS)</h2> <hr> <p>Technical Information (for support personnel)</p> <ul> <li>Go to <a href="http://go.microsoft.com/fwlink/?linkid=8180">Microsoft Product Support Services</a> and perform a title search for the words <b>HTTP</b> and <b>401</b>.</li> <li>Open <b>IIS Help</b>, which is accessible in IIS Manager (inetmgr), and search for topics titled <b>Authentication</b>, <b>Access Control</b>, and <b>About Custom Error Messages</b>.</li> </ul> </TD></TR></TABLE></BODY></HTML> * Connection #0 to host *** left intact * Closing connection #0 КОгда через эсплоер захожу на эту страничку, то выскакивает окошко с предложением вести логин и пароль.
|