[mythtv] Disabling Authentication in Webfrontend?
keemllib at gmail.com
Fri Sep 15 15:56:30 UTC 2017
On 09/15/2017 10:38 AM, Dag Nygren wrote:
> On Friday 15 September 2017 10:26:28 Bill Meek wrote:
>> On 09/15/2017 09:54 AM, Dag Nygren wrote:
>> If user admin, pass mythtv works, then try this (works for me):
>> curl --digest --user admin:mythtv -H 'Accept: application/json' --data Key=HTTP/Protected/Urls --data Value="/Off"
> Gives me a response of:
> <?xml version="1.0" encoding="utf-8"?><detail><errorCode>501</errorCode><errorDescription>Key Required</errorDescription></detail>
That error literally means that the "Key wasn't received.
You'll have to paste the command you sent rather
than my example (don't need to know your hostname.)
You successfully used Key earlier in:
curl -H 'Accept: application/json' yourBackendHostOrIP:6544/Myth/GetSetting?Key=HTTP/Protected/Urls\&HostName=_GLOBAL_
However, PutSetting requires a POST so for curl, that means
using the --data switch. I guess you could try wget in place
of curl. Or, could something else be eating the postdata
(like your web server.)
More information about the mythtv-dev