← Back to team overview

ubuntu-phone team mailing list archive

Re: alternative to XMLHttpRequest ?

 

Hi!

Yes, I am familiar, not an expert though. Can you share some kind of
example maybe that I can use ?

Thanks!

On Mon, Mar 21, 2016 at 5:38 PM, Roman Shchekin <mrqtros@xxxxxxxxx> wrote:

> Hello
>
> Are you familiar with C++? Redirection can be easily handled with it.
>
> 2016-03-21 12:09 GMT+03:00 Omer Akram <omer.akram@xxxxxxxxxxxxx>:
>
>> Hi!
>>
>> I am writing a soundcloud client and the issue I am seeing right now is
>> that the response with 302 status is automatically redirected, this is fine
>> in most cases but for me, it ends up downloading the whole track to some
>> unknown location. I don't want that since I want to stream the track and
>> not download it completely before playing it.
>>
>> I googled around and came across this[1]. What alternatives do I have ?
>> Shall I implement the internet part in c++ or is there an alternative
>> to XMLHttpRequest which does not redirect 302 responses ?
>>
>> NB: I am not an expert of JS, rather a newbie.
>>
>> Thanks!
>>
>> [1]
>> http://stackoverflow.com/questions/228225/prevent-redirection-of-xmlhttprequest
>>
>> --
>> Mailing list: https://launchpad.net/~ubuntu-phone
>> Post to     : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~ubuntu-phone
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>

References