[mythtv-users] Internet won't work thru proxy
Tony Maro
tony at maro.net
Fri Dec 5 11:49:46 EST 2003
Joseph A. Caputo wrote:
>On Wednesday 03 December 2003 13:27, Tony Maro wrote:
>
>
>>Just FYI:
>>
>>I have a Squid proxy with Dansguardian in my house that is
>>transparently redirected to from outgoing port 80's...
>>
>>in other words, a transparent filtering proxy.
>>
>>The URL's that MythTV access for weather, imdb, etc... all work from
>>a browser, but within MythTV they fail if going thru the transparent
>>proxy.
>>
>>I had to reconfigure my firewall to NOT redirect the outbound 80 for
>>the IP that is my MythTV box.
>>
>>
>
>The problem is more likely Dansguardian, I'd think. MythVideo and
>MythWeather expect to parse an html file formatted in a particular way,
>I believe. If Dansguardian is performing substitutions (removing ads,
>rewriting URLs, etc), this could screw up Myth. Rather than remove
>your proxy from the loop, I'd just configure Squid to not pass content
>from msnbc.com or imdb.com through Dansguardian, but to simply return
>it unfiltered.
>
>-JAC
>
>
Well it's not doing any substitutions, but it might be screwing up the
headers maybe? I've looked at the Dansguardian logs, and it says it's
feeding it all back just fine, no changes or blocking. However, by
adding some debug code into the routines that grab the weather I was
able to determine that after requesting the web page, the HTML content
is returning blank in the object, prior to parsing.
I'm not really concerned with using or not using the proxy - it's mainly
there for the kid's computer to keep them from stumbling into something
unexpected.
Anyway, as mentioned, it's not even returning any data from the object
to _be_ parsed. the HTTPData variable in weather.cpp is blank before
parsing.
Initially I tried the Manrake 9.1 RPM's for MythTV linked from the
website... On that version, if you tried to access the IMDB through the
proxy it would segfault. My personally compiled copy running in
Mandrake 9.2 would just return nothing. Also, it would return nothing
IMMEDIATELY - whereas even in a web browser it would take a second to
get through the Internet and the proxy (my proxy box is kinda slow).
Perhaps it's thinking the connection has closed because the proxy
doesn't return something it expects?
-Tony
More information about the mythtv-users
mailing list