[mythtv] DataDirect Authentication

jack jr at jrh.net
Thu Apr 22 18:34:31 EDT 2004


Narrowed it down to wget, no matter what it does it never gets a gzip file
back, just plain text with the correct information. Compiled wget with
debugging and ended up with the following. It looks like it is sending out
the header request alright but the web server on the other end is ignoring
it for whatever reason? Course if that was true it would be screwing up on
everybody's and not just mine...

Tried it with a space between Accept-Encoding and gzip and without, no
difference. 

wget --header='Accept-Encoding: gzip' --http-user='xxx' --http-passwd='xxx'
--post-file='/tmp/mythpost7SM5W0'
http://datadirect.webservices.zap2it.com/tvlistings/xtvdService
--output-document=test6 --debug
DEBUG output created by Wget 1.9.1 on linux-gnu.

--15:31:47--
http://datadirect.webservices.zap2it.com/tvlistings/xtvdService
           => `test6'
Resolving datadirect.webservices.zap2it.com... 206.18.98.160
Caching datadirect.webservices.zap2it.com => 206.18.98.160
Connecting to datadirect.webservices.zap2it.com[206.18.98.160]:80...
connected.
Created socket 4.
Releasing 0x8088680 (new refcount 1).
---request begin---
POST /tvlistings/xtvdService HTTP/1.0
User-Agent: Wget/1.9.1
Host: datadirect.webservices.zap2it.com
Accept: */*
Connection: Keep-Alive
Authorization: Basic Z2VuZGFsOnRhaXBhbjg=
Content-Type: application/x-www-form-urlencoded
Content-Length: 525
Accept-Encoding: gzip

[writing POST file /tmp/mythpost7SM5W0 ... done]
---request end---
HTTP request sent, awaiting response... HTTP/1.1 401 Unauthorized
Via: 1.1 TAIHO
Connection: close
Proxy-Support: Session-Based-Authentication
Connection: Proxy-Support
Date: Thu, 22 Apr 2004 22:30:09 GMT
Content-Type: text/html
Server: Orion/2.0.1
Keep-Alive: timeout=15, max=100
WWW-Authenticate: Digest realm="TMSWebServiceRealm",
nonce="PDEwODI2NzMwMDk5ODQuZjYxNTAzNWEzNTI0NzExNGJmNDZhYjM4OTI3MTBjYmFAbWFnb
nVtPg==", opaque="eb17dcce779f3438", algorithm=MD5, qop="auth"


Closing fd 4
Found datadirect.webservices.zap2it.com in host_name_addresses_map
(0x8088680)
Connecting to datadirect.webservices.zap2it.com[206.18.98.160]:80...
connected.
Created socket 4.
Releasing 0x8088680 (new refcount 1).
---request begin---
POST /tvlistings/xtvdService HTTP/1.0
User-Agent: Wget/1.9.1
Host: datadirect.webservices.zap2it.com
Accept: */*
Connection: Keep-Alive
Authorization: Digest username="xxx", realm="TMSWebServiceRealm",
nonce="PDEwODI2NzMwMDk5ODQuZjYxNTAzNWEzNTI0NzExNGJmNDZhYjM4OTI3MTBjYmFAbWFnb
nVtPg==", uri="/tvlistings/xtvdService",
response="ab7e247a025358cbbbc0965ddb889b40", opaque="eb17dcce779f3438"
Content-Type: application/x-www-form-urlencoded
Content-Length: 525
Accept-Encoding: gzip

[writing POST file /tmp/mythpost7SM5W0 ... done]
---request end---
HTTP request sent, awaiting response... HTTP/1.1 200 OK
Via: 1.1 TAIHO
Connection: close
Proxy-Connection: close
Date: Thu, 22 Apr 2004 22:30:10 GMT
Content-Type: text/xml; charset=UTF-8
Server: Orion/2.0.1
Keep-Alive: timeout=15, max=100


Length: unspecified [text/xml]

    [    <=>
] 18,580        20.53K/s

Closing fd 4
15:31:49 (20.51 KB/s) - `test6' saved [18580]



More information about the mythtv-dev mailing list