[mythtv] DataDirect Authentication

jack jr at jrh.net
Thu Apr 22 17:56:34 EDT 2004

Hotdiggity, I took out the gzip portions and it worked.  So for what ever
reason wget is not returning a true gzip file or my gzip is wonky (doubt
that but it's 1.3.3 anyways). Which sucks because gzip shrinks it down
massively... a days worth of info is 1 to 1.5mbs with out it. Will see if I
can figure it out, but any more nice pointers would be great =)

-----Original Message-----
From: mythtv-dev-bounces at mythtv.org [mailto:mythtv-dev-bounces at mythtv.org]
On Behalf Of David Shay
Sent: Thursday, April 22, 2004 2:28 PM
To: Development of mythtv
Subject: Re: [mythtv] DataDirect Authentication

Not sure I know the problem, but the "401 Unauthorized" "errors" are
actually normal.  When you do http authentication, you first send a standard
HTTP request and basically expect to get the 401 error.  Certain information
contained in the error is then used to construct the actual call which
includes the username and password.

If you want to do a bit more troubleshooting, remote the
"--header='Accept-Encoding:gzip'" and " | gzip -d " portions of the command
line.  You might see some more valid information then.  If that doesn't shed
any light on it, try adding  " | tee /tmp/wget.out" to the command line to
see the actual HTML retrieved by wget.

----- Original Message ----- 
From: "jack" <jr at jrh.net>
To: "'Development of mythtv'" <mythtv-dev at mythtv.org>
Sent: Thursday, April 22, 2004 3:21 PM
Subject: [mythtv] DataDirect Authentication

> While trying to use the DataDirect Zap2it grabber in the latest cvs I get
> **************************************
> 2004-04-22 11:42:09 Fetching lineups from DataDirect service...
> 2004-04-22 11:42:09 wget --http-user='xxx' --http-passwd='xxx'
> --post-file='/tmp/mythpostSeIp9g' --header='Accept-Encoding:gzip'
> http://datadirect.webservices.zap2it.com/tvlistings/xtvdService
> --output-document=- | gzip -d
> --11:42:09--
> http://datadirect.webservices.zap2it.com/tvlistings/xtvdService
>            => `-'
> Resolving datadirect.webservices.zap2it.com...
> Connecting to datadirect.webservices.zap2it.com[]:80...
> connected.
> HTTP request sent, awaiting response... 401 Unauthorized
> Connecting to datadirect.webservices.zap2it.com[]:80...
> connected.
> HTTP request sent, awaiting response... 200 OK
> Length: unspecified [text/xml]
>     [  <=>
> ] 4,874         12.14K/s
> 11:42:13 (12.11 KB/s) - `-' saved [4874]
> gzip: stdin: not in gzip format
> ****************************************

mythtv-dev mailing list
mythtv-dev at mythtv.org

More information about the mythtv-dev mailing list