curl-users
Digest authorized
Date: Wed, 26 Nov 2008 13:48:32 +0300
> Don't work Digest authorized.
>
> ===========================
> VERSION
> curl 7.18.2 (i486-pc-linux-gnu) libcurl/7.18.2 OpenSSL/0.9.8g zlib/1.2.3.3
> libidn/0.6.5 libssh2/0.18
> Protocols: tftp ftp telnet dict http file https ftps scp sftp
> Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz
> ======================
>
> curl -u "USER:PASS" --digest -v "http://xxx.ru/Main.aspx?Method=List
> <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
> <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="xxx.ru",
> nonce="a4af85e49c4fc901242b7f79d950ed3cfddd7e8c7254ad89533b6f0a2f18dc6beff
> eee6a71c91d95", uri="/Main.aspx?Method=List", cnonce="MTIyNzU4",
> nc=00000001, qop="auth", response="68710bbd7571b96d622e4bf53e5164db",
> 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">
> <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>
>
>
> HELP ME
>
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2008-11-26