cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: CURLOPT_HTTPAUTH and Digest Authorization Required

From: Jon M <removed_at_removed>
Date: Sun, 20 Feb 2005 21:44:57 -0500

Most interesting, the hosting admin. ran trace as you requested and got the
desired output. Do I have some option enabled that I shouldn't?? I'm a bit
confused why it worked via command line..

Trace Output:

== Info: About to connect() to xx.xx.xxx.xx port 443
== Info: Trying xx.xx.xxx.xx... == Info: connected
== Info: Connected to xx.xx.xxx.xx (xx.xx.xxx.xx) port 443
== Info: successfully set certificate verify locations:
== Info: CAfile: /usr/local/share/curl/curl-ca-bundle.crt
  CApath: none
== Info: SSL connection using DES-CBC3-SHA
== Info: Server certificate:
== Info: subject: /CN=240-0000-8081-80A2/O=TiVo
Inc./OU=IT/L=Alviso/ST=California/C=US
== Info: start date: 2005-01-12 01:38:09 GMT
== Info: expire date: 2015-01-10 01:38:09 GMT
== Info: common name: 240-0000-8081-80A2 (does not match
'xx.xx.xxx.xx')
== Info: issuer: /CN=240-0000-8081-80A2/O=TiVo
Inc./OU=IT/L=Alviso/ST=California/C=US
== Info: SSL certificate verify result: error number 1 (18), continuing
anyway.
== Info: Server auth using Digest with user 'tivo'
=> Send header, 188 bytes (0xbc)
0000: GET /nowplaying/index.html?Recurse=Yes HTTP/1.1
0031: User-Agent: curl/7.13.0 (i686-pc-linux-gnu) libcurl/7.13.0 OpenS
0071: SL/0.9.6b zlib/1.1.3
0087: Host: xx.xx.xxx.xx
009b: Pragma: no-cache
00ad: Accept: */*
00ba:
<= Recv header, 37 bytes (0x25)
0000: HTTP/1.1 401 Authorization Required
<= Recv header, 36 bytes (0x24)
0000: Server: tivo-httpd-1:7.1a-01-2:240
<= Recv header, 88 bytes (0x58)
0000: Set-Cookie: sid=A91A68DA266A403; path=/; expires="Saturday, 16-F
0040: eb-2013 00:00:00 GMT";
<= Recv header, 81 bytes (0x51)
0000: WWW-Authenticate: Digest realm="TiVo DVR", nonce="E5704AB97FB73C
0040: 49", qop="auth"
<= Recv header, 20 bytes (0x14)
0000: Content-Length: 31
<= Recv header, 25 bytes (0x19)
0000: Content-Type: text/html
<= Recv header, 24 bytes (0x18)
0000: Connection: keep-alive
<= Recv header, 32 bytes (0x20)
0000: Keep-Alive: max=10, timeout=30
== Info: Ignoring the response-body
<= Recv data, 31 bytes (0x1f)
0000: <h2>Authorization Required</h2>
== Info: Connection #0 to host xx.xx.xxx.xx left intact
== Info: Issue another request to this URL:
'https://xx.xx.xxx.xx/nowplaying/index.html?Recurse=Yes'
== Info: Re-using existing connection! (#0) with host xx.xx.xxx.xx
== Info: Connected to xx.xx.xxx.xx (xx.xx.xxx.xx) port 443
== Info: Server auth using Digest with user 'tivo'
=> Send header, 402 bytes (0x192)
0000: GET /nowplaying/index.html?Recurse=Yes HTTP/1.1
0031: Authorization: Digest username="tivo", realm="TiVo DVR", nonce="
0071: E5704AB97FB73C49", uri="/nowplaying/index.html?Recurse=Yes", cno
00b1: nce="MTEwODk0", nc=00000001, qop="auth", response="383e9b3e108e1
00f1: a9a98bae10f42ac9902"
0107: User-Agent: curl/7.13.0 (i686-pc-linux-gnu) libcurl/7.13.0 OpenS
0147: SL/0.9.6b zlib/1.1.3
015d: Host: xx.xx.xxx.xx
0171: Pragma: no-cache
0183: Accept: */*
0190:
<= Recv header, 27 bytes (0x1b)
0000: HTTP/1.1 200 File Follows
<= Recv header, 36 bytes (0x24)
0000: Server: tivo-httpd-1:7.1a-01-2:240
<= Recv header, 88 bytes (0x58)
0000: Set-Cookie: sid=A91A68DA266A403; path=/; expires="Saturday, 16-F
0040: eb-2013 00:00:00 GMT";
<= Recv header, 40 bytes (0x28)
0000: Content-Type: text/html; charset=UTF-8
<= Recv header, 19 bytes (0x13)
0000: Connection: close
<= Recv data, 3884 bytes (0xf2c)
0000: <!-- Generated HTML --><html><head><title>Now Playing</title>

-----Original Message-----
Really? Then can you please run the curl command line instead and use the
--trace-ascii option and show us that trace output? (remember to edit out
sensitive info before posting)
Received on 2005-02-21