Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / [ISSUE/BUG] iOS GetHTTPFile() can only go one directory deep in server file-tree when Auth is required

Author
Message
MillaSays
6
Years of Service
User Offline
Joined: 15th Dec 2017
Location:
Posted: 16th Aug 2018 13:02 Edited at: 16th Aug 2018 13:06
Original thread of me getting to this point: https://forum.thegamecreators.com/thread/222776

On my server I have implemented a simple auth system - so when requesting a file the client need send user-name and password - using SetHTTPHost(id, ip.api, ip.tls, ip.user, ip.pass) in AGK. Which is fine. However on iOS for some reason, there is a limit on how far down the file-tree you can go. Actually, only one deep. Any more, and iOS spits out the error-message seen in original post of original thread linked to at top of this post. The downloaded files will only have the text "Unauthorized" (message from server) in them, not the actual contents one was wanting. In my case, .png images.

On Android, Windows, Linux (Ubuntu) and even MacOS this limit do not exist, I can travel up and down the file-structure on the server as much as I please without losing auth. So on iOS the culprit is one of two:

1: iOS itself have a limited file-transfer over http library that do not allow going more than one directory deep on a remote server without losing auth.
2: AGKs GetHTTPFile() is limited/buggy on iOS, and do not allow one to go more than one directory deep on a remote server without losing auth.

Running latest AppGameKit version and iOS version naturally.

If any of the Devs need a sample project and testing access to my server to test it out, send me a PM.

Login to post a reply

Server time is: 2024-11-23 17:36:14
Your offset time is: 2024-11-23 17:36:14