Jump to content

HttpBasicAuth


Tolotos

Recommended Posts

Tolotos

Hi,

 

I want to add picon supprt into my tvheadend plugin.

tvheadend delivers the icon with a url like: http://<server>:<port>/imagecache/184

 

If I try to open this url in a browser he asks me for user and password.

Therefor I used this url: http://<user>:<passwd>@<server>:<port>/imagecache/184

Which is working in the browser.

 

Unfortunately ebmy throws an exception with url:

 

2016-02-23 20:35:59.3143 Error HttpClient: Error getting response from http://XXX:XXX@tv-server:9981/imagecache/184
    *** Error Report ***
    Version: 3.0.5871.0
    Command line: C:\Users\RGU\AppData\Roaming\MediaBrowser-Server\System\MediaBrowser.ServerApplication.exe
    Operating system: Microsoft Windows NT 6.1.7601 Service Pack 1
    Processor count: 4
    64-Bit OS: True
    64-Bit Process: True
    Program data path: C:\Users\RGU\AppData\Roaming\MediaBrowser-Server
    Application Path: C:\Users\RGU\AppData\Roaming\MediaBrowser-Server\System\MediaBrowser.ServerApplication.exe
    Mindestens ein Fehler ist aufgetreten.
    System.AggregateException
       bei System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       bei System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
       bei MediaBrowser.Common.Implementations.HttpClientManager.HttpClientManager.<SendAsyncInternal>d__1b.MoveNext()
    InnerException: System.Net.WebException
    Der Remoteserver hat einen Fehler zurückgegeben: (401) Nicht autorisiert.
       bei System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
       bei System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)

 

The cause is the 401.

How can I say Emby to send the HttpBasicAuth?

 

-- Tolotos

Edited by Tolotos
Link to comment
Share on other sites

  • 2 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...