Re: LWP::UserAgent fails on Windows to connect to https

expectingtofly <expectingtofly.a7vmzb-NUepA2SMhDQqspMVqqL2D+4xXEVPTSb/[email protected]>
Newsgroups gmane.music.equipment.slimdevices.devel
Organization Logitech Squeezebox Forums
Message-ID <[email protected]>
505 wrote: 
> 
> 
> BTW, the reason I'm using LWP::UserAgent and not
> Slim::Networking::SimpleAsyncHTTP is that I need to get the 'Location'
> header of a 302 redirect. SimpleAsyncHTTP always follows redirects and
> doesn't seem to have an option to display redirects and get the data for
> the 302 redirect itself.

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



Stuart McLean   

EXPECTINGTOFLY PLUGINS :
    
- *BBC Sounds* : 
  https://github.com/expectingtofly/LMS_BBC_Sounds_Plugin 
- *Virgin Radio (UK)* : 
  https://github.com/expectingtofly/LMS_Virgin_Radio_Plugin 
- *Times Radio* : 
  https://github.com/expectingtofly/LMS_TIMES_RADIO_PLUGIN 
- *Global Player (UK)* : 
  https://github.com/expectingtofly/LMS_GlobalPlayer_Plugin 
  
For BBC Sounds help see the 'BBC Sounds Wiki'
(https://github.com/expectingtofly/LMS_BBC_Sounds_Plugin/wiki).
------------------------------------------------------------------------
expectingtofly's Profile: http://forums.slimdevices.com/member.php?userid=63263
View this thread: http://forums.slimdevices.com/showthread.php?t=115130
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.