Godot Version
Godot 4.2.2
Question
I’m making an application for Android, in which I need to get a file from some service, read it and find out if there is an update.
The question is where can I store files for free and then use gdscript code to retrieve these files? for example Google Drive or something like that, please advise something
Thank you, for example, I chose one of these, how can I get the file I need using the code? (I’m sorry, I haven’t worked with Godot’s network functions)
Such services as described above do not provide a full link to the file for example “https:\website.com\myAcc\file.txt” instead they use such links as “https:\website.com\myAcc\ASf3Od”, and I can’t get no file, no error from HTTPRequest, is there a way around this or do I need to use another service?
I received this PackedStringArray from “Headers”, what should I do with it?
Date: Mon, 17 Jun 2024 22:06:03 GMT
Server: Apache/2.4.59 (Ubuntu)
Content-Disposition: attachment; filename=“test.txt”
Content-Length: 12
Cache-Control: no-cache, private
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 59
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS
Access-Control-Allow-Headers: Origin, Content-Type, Accept, Authorization, X-Requested-With
Set-Cookie: XSRF-TOKEN=eyJpdiI6Ik5meGJFSG1NaGo4QTZRRW5NUGVuQUE9PSIsInZhbHVlIjoiN0dXemUrOHhleVdhY0h6aGI1dFRxYkR0cGRlV2tLdXlJM0lGejAyeWp0bGR3SlJYYjNwS3YzVVhlUTEzdmZSWCIsIm1hYyI6ImRjNGFkMzQ3Yzc5NzhlMDQxN2U3ZGE5MzZlODMxNDBlYmY5OWNlMTFjMTdjMjkxNGMzNDUxNTQ4MzU5MDU3ZmUifQ%3D%3D; expires=Thu, 15-Jun-2034 22:06:11 GMT; Max-Age=315360000; path=/; domain=.blomp.com
Set-Cookie: bng=eyJpdiI6IktIQzI1dkxFUGV6USttUWw2WjhhbkE9PSIsInZhbHVlIjoiZG1uN1E3QXdZeFF4dXE4RlZPQStValhQa3BudnZ2cERrcHZrVkpaSVd1cXNCa2F3R1pBK3FnbjZEVTRUMXNSOCIsIm1hYyI6ImJiODVhNDRmZWZiNGY3ZDIzNjA3M2Q4ZjNmNjNmNTg4MWU5NmFkZTAzM2Q3NTYxZmMxZGVkNmEzN2YzYTEzNmMifQ%3D%3D; expires=Thu, 15-Jun-2034 22:06:11 GMT; Max-Age=315360000; path=/; domain=.blomp.com
Content-Type: text/html; charset=UTF-8
And in “Body” I got this:
[104, 101, 108, 108, 111, 32, 102, 105, 108, 101, 115, 33]