Hi - Is there a way to get the last redirect url when receiving a response from a get for a SimpleAsyncHTTP class? I can do that using base() on LWP::UserAgent, but I know I'll be excommunicated if I use this
SimpleAsyncHTTP: getting the last redirected url
Collapse
X
-
SimpleAsyncHTTP: getting the last redirected url
LMS 8.2 on Odroid-C4 - SqueezeAMP!, 5xRadio, 5xBoom, 2xDuet, 1xTouch, 1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000, ShairPortW, 2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3Tags: None -
SimpleAsyncHTTP: getting the last redirected url
> Hi - Is there a way to get the last redirect url when receiving a
> response from a get for a SimpleAsyncHTTP class? I can do that using
> base() on LWP::UserAgent, but I know I'll be excommunicated if I use
> this
I don't think it's available from SimpleAsyncHTTP. But its underlying
Slim::Networking::Async::HTTP class does support an onRedirect
parameter. You could use that class directly, or inherit from
SimpleAsyncHTTP and override its _createHTTPRequest call.
--
Michael
Michael
"It doesn't work - what shall I do?" - "Please check your server.log and/or scanner.log file!"
(LMS: Settings/Information) -
> Hi - Is there a way to get the last redirect url when receiving a
> response from a get for a SimpleAsyncHTTP class? I can do that using
> base() on LWP::UserAgent, but I know I'll be excommunicated if I use
> this
I don't think it's available from SimpleAsyncHTTP. But its underlying
Slim::Networking::Async::HTTP class does support an onRedirect
parameter. You could use that class directly, or inherit from
SimpleAsyncHTTP and override its _createHTTPRequest call.
--
Michael
As usual, I could do make that without your guidanceLMS 8.2 on Odroid-C4 - SqueezeAMP!, 5xRadio, 5xBoom, 2xDuet, 1xTouch, 1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000, ShairPortW, 2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3Comment
Comment