Open cptdondo opened 10 years ago
I'll get this into the README asap but defining a client request with no user agent seems the opposite of what spammers would do.
Notes ...check your firewall if it filters user-agent. Do not apply this filter to the mythserver workgroup client requests.
or something like that. Comments?
Schedule is not populated and apache logs show an error like this:
[Sun Jan 19 10:49:40 2014] [error] [client 192.168.128.15] PHP Warning: SimpleXMLElement::__construct(http://media.seiner.com/mythweb /mythroku///jobqueue_service.php?chanid=1282&starttime=2014-01-19+15%3A04%3A00): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden\r\n in /home/www/seiner/media/mythweb/mythroku/mythtv_upcoming_xml.php on line 44
Fix:
SimpleXMLElement browser request does not send a User-Agent string by default. I think it can be set up to do so; see http://www.php.net/manual/en/context.http.php
Workaround:
The default Apache configuration in Ubuntu and probably other distros is set up to deny browsers with no User-Agent string.
for the mythroku webhost, disable User-Agent checking. Find the section in the appropriate apache conf file and change this:
to