mp4 stream + PDF path (authentication)

tryp's Avatar

tryp

06 Jun, 2011 03:09 PM via web

hi,

Since both of these issues stem from authentication i have merged the issues.

With both the mp4 stream and the pdf download request/stream request i get a 401.

i have tested it 3 fold insuring the ip adress is always the same.

First i tested it on a simulator while regularly checking the IP address - i got 401

Then i tested it on a device connected on wifi while checking the ip before and after token request to insure it is the same - i got 401

lastly i tried it on a device on 3g... checking the ip before token and after token request no changes found - i got 401

The path i have used for the mp4 testing is:
http://put.io/stream-mp4/{user_id}/{fileID}/atk/{Token}

the paths i used for pdf was
stream url
then
stream url + token
then
download url
then
then download url + token

i use a new token before every set of requests

i used http sniffer to make sure the token used is the same as the token requested

like i said earlier the ip has been the same all the way through each test

this leaves me with very little else to try

pls let me know if there is anything i am missing
or
is this an issue that may be addressed in the apiV2?

thx

  1. Support Staff 2 Posted by aybars.badur on 06 Jun, 2011 03:35 PM

    aybars.badur's Avatar

    Hi,

    Could you please try 2 things for me,

    first can you try this
    http://{{serverid}}.put.io/stream-mp4/{{user_id}}/{{fileid}}/atk/{{...

    second can you please try this schema - sending the users name and password embedded in url, this should bypass token authentication and use users name -
    http://{{username}}:{{password}}@{{serverid}}.put.io/stream-mp4/{{u...

    with {{serverid}} i mean, you get a stream url like https://s04.put.io/stream/file... if you use http://put.io/ it makes a redirection to the storage server, so maybe, the redirection is causing problems, so if you can use the servers name directly, it might help.

    please let me know what happens.

    best regards,

  2. 3 Posted by tryp on 06 Jun, 2011 03:39 PM

    tryp's Avatar

    hi,

    thx for the reply i am on it.

    so the server id for the mp4 is the same as the original file?

  3. 4 Posted by tryp on 06 Jun, 2011 04:07 PM

    tryp's Avatar

    OMG i am such a fool

    i thought the user_id was the username

    once i replaced it with its numerical counter part that worked fine

    The redirect URL worked with the token. no need for user name or password.

    in other words i used:
    http://put.io/stream-mp4/{user_id}/{fileID}/atk/{Token}

    thank you so much.

    one last thing if you would, what is the make up of the pdf url?

    what is the best url to use to load it into a webpage?

    Download_url or stream_url?

    and do i need to add the token or the user id to it?

    thx

  4. 5 Posted by tryp on 10 Jun, 2011 06:00 AM

    tryp's Avatar

    thx got the doc path working now :)

  5. tryp closed this discussion on 10 Jun, 2011 06:00 AM.

Comments are currently closed for this discussion. You can start a new one.