Re: LWP::UserAgent fails on Windows to connect to https
505 <505.a7vpun-NUepA2SMhDQqspMVqqL2D+4xXEVPTSb/[email protected]>
| Newsgroups | gmane.music.equipment.slimdevices.devel |
|---|---|
| Organization | Logitech Squeezebox Forums |
| Message-ID | <[email protected]> |
mherger wrote: > > > Ugh... the code indeed does a "$maxRedirect || 7". Which means that as > Perl considers 0 a falsy value, it would be set to 7 instead. Would > using -1 work? No, I tried it with 0 and -1, and both don't work. Also, when the redirect limit is hit, it thrown an error (goes to the error callback) instead of the success callback, which isn't that nice for the flow. expectingtofly wrote: > When I need the redirect data I use Slim::Networking::Async::HTTP . if > you use sendRequest on that session you can pass in an "onRedirect" > callback. Here is an example of where I use it in BBC Sounds : > https://github.com/expectingtofly/LMS_BBC_Sounds_Plugin/blob/bbbc2227e98bb47069f87244a4b6e32eeaf8d1b3/BBCSounds/SessionManagement.pm#L95 Thanks, I'll take a look it this! My patch: 'Reduce brightness when screen saver is active' (http://server.vijge.net/squeezebox/) for Touch Plugins: 'SqueezeCloud (SoundCloud)' (https://github.com/danielvijge/SqueezeCloud), 'Mixcloud' (https://github.com/danielvijge/lms_mixcloud) ------------------------------------------------------------------------ 505's Profile: http://forums.slimdevices.com/member.php?userid=44967 View this thread: http://forums.slimdevices.com/showthread.php?t=115130