StreamingKit icon indicating copy to clipboard operation
StreamingKit copied to clipboard

302 redirect

Open erictse opened this issue 11 years ago • 4 comments

Is STKHTTPDataSource (or some other URL handler in STKAudioPlayer) supposed to handle HTTP redirects? I'm unsuccessful at getting it working.

erictse avatar May 22 '14 15:05 erictse

It doesn't handle 302 redirects at the moment. This should be fairly easy to add.

tumtumtum avatar May 22 '14 19:05 tumtumtum

How would this be done @tumtumtum ?

dcvz avatar Jul 21 '17 13:07 dcvz

After the headers come back you check for the 302 response and then make a new connection using the URL supplied by the server in the "Location" header.

tumtumtum avatar Jul 21 '17 13:07 tumtumtum

Think you could point me where we'd have access to the headers and be able to make a new request? You mean in the library itself right? I see that in the code there seems to be some parsing of headers but still trying to wrap my head around the logic.

dcvz avatar Jul 25 '17 10:07 dcvz