http

  1. P

    HTTP functions fail with HTTP Status 0 on Linux builds, but not Windows when requesting HTTPS

    Hello everyone! I am creating a program which communicates to a server that I set up with an SSL certificate from the CA Namecheap. I am using the function call http_get("https://frey.network/phame/") to check if the website is reachable. On Windows 10 this returns the ds_map values of: status...
  2. angelwire

    GMS 2.3+ http_get_file() begins download but end with -1 status

    Hello, I'm trying to download a file using http_get_file() but it ends with an error. I've spent a while checking the manual but I can't seem to find out what the problem is. The http_status is fine so I can't figure out what the problem is. I thought it might be a bug with 2.3 but the same...
  3. G

    Upload a game file to a web server

    Hello! I'm making a project where the player has to make an artwork while playing the game. My idea is that, when the game ends, it takes a screenshot of the player's masterpiece, send to a server so that It can be posted on a website, like a gallery. The screenshot I know can be saved using the...
  4. Posho

    GMS 2 [SOLVED] HTTP GET/POST Help for GraphQL

    Hello, I am trying to get access to an API using HTTP functions. Normally you would make queries using JSON files but apparently GM:S forcefully uses ds_maps, which is a tad different. I am also having trouble sending the Auth Token, which from my understanding is done through the Header of a...
  5. FrostyCat

    Asset - Scripts Request Master: A new era for HTTP requests in GMS 2.3+

    Request Master Bringing out the true potential of http_request() since 2020 Overview This library for GMS 2.3+ provides a set of extensions for easily encoding, decoding, and sending HTTP requests. The encoding tools support application/x-www-form-urlencoded, multipart/form-data and...
  6. FoxyOfJungle

    GML http_post_string: Can't get upload progress

    Hi! I am using http_post_string() to upload my "gamedata.dat" file to my server. It uploads perfectly and also downloads. On the server the PHP files and database are all working perfectly. The problem is that I can't get the file upload progress, just the download progress, which works...
  7. Coded Games

    Parsing JSON from HTTP Request

    So I am trying to parse the word "Hola" out of this JSON: {"outputs": [{"output":"Hola","stats":{"elapsed_time":463,"nb_characters":5,"nb_tokens":1,"nb_tus":1,"nb_tus_failed":0}}]} The JSON contains the list "outputs" then the first element of that list will be an object and the word I am...
  8. Adriano_ppaula

    GMS 2 [80%] Help with http_get_file download interrupted

    Hello everyone, everything good? I need help with a simple system that I made for my game. Where it downloads a file from a server to update. I realized that when the internet happens to lose the connection. Or there is some kind of delay in the download. Game maker studio understands that the...
  9. LDinos

    Help with downloading a file using http_get_file

    Greetings! I am trying to make a simple auto update checker, and I thought of doing it like this: Download a text file that I have uploaded, read the string inside it, and compare it to the current version string. However I have a problem using http_get_file. Here's the object Create event...
  10. D

    Need Help With HTTP connection to an API

    Hello, Im trying to make a HTTP request to an api and then display the data but im unsure on how to do it with the specific file. Any Ideas? Im trying to get the "Meta Data\6. Time Zone" words as a string from...
  11. D

    GM2 getting HTML/HTTP information on a website

    Hello, I am currently working on a game which requires it to know if the stock market is currently open or not, It needs to go to https://www.stockmarketclock.com/exchanges/nyse/trading-hours and check if the Exchange is open or closed. Iv seen that this may be possible with http_Get but i have...
  12. FoxyOfJungle

    GMS 2 Facebook - How to use the chat in Windows?

    I am doing a launcher and would like to integrate Facebook chat into it as well as the friend list and profile info. Is there any way to do this in Windows? (using dll's or http requests) I've already tried: Creating my own chat system using the server in PHP and using HTTP requests, but it...
  13. G

    Android http_get & http_post_string error, status -1 on android/HTML5

    Hello, I'm using GM 1.4 and have my game sending highscores through http_get function. It works fine on windows, but when running on Android (tried both emulator and my regular phone) it stops working. When trying to debug it seems to always return status -1 on async HTTP event. Could someone...
  14. Gamerev147

    GMS 2 Post a String to Online Server?

    I'm using an online server called "x10hosting.com/". I'm able to make a text file on the server and get data from it in GMS2. However, I would like to upload data to this text file on my server using GMS2. Is there anyway this can be done? Any help is appreciated.
  15. Wheel7Games

    [SOLVED] Http Post returns status -1 while http_status is 200

    I am creating a .NET Core Web Api highscore server. The server side is working nicely when I use Postman to test the Api. When I started testing the Api from my GMS game, I got an error. When I debug the async call, I notice that the status has a value of -1. However, when I check the...
  16. G

    Android Was there a change between 2.2.1.291 and 2.2.2.326 for Android async-http events? (SOLVED)

    I've used http_post_string to send myself debug log files from a mobile device for a long time. This stopped working recently, however. In troubleshooting, I find that it works using a virtual device or in the desktop test mode, but it no longer works using an actual device. My code hasn't...
  17. Edwin

    Legacy GM [SOLVED] Trying to convert image from link to a sprite.

    Hello. I'm trying to get the image from my avatar using Image Loaded async event. Code: /// Image Loaded: avatar_sprite = sprite_add("https://forum.yoyogames.com/data/avatars/l/31/31538.jpg?1547144011", 1, false, false, 0, 0); if (ds_map_find_value(async_load, "id") == avatar_sprite) { if...
  18. clee2005

    Android async_load doesn't exist sometimes?

    Hey GMers! Does anyone have any guidance on why my users are getting this error sometimes. 12-26 13:59:01.496 32459 32493 I yoyo : ERROR!!! :: ############################################################################################ 12-26 13:59:01.496 32459 32493 I yoyo : ERROR in 12-26...
  19. Sammi3

    Async_Load Reading HTTP Stream

    I'm trying to connect to a Firebase Realtime database using their RESTApi. To get realtime data from it, I have to send a http_get request with the header Accept being equal to 'text/event-stream' Here's how I did it: var url, header, payload, _session; url = "https://[DATABASE]/servers.json"...
  20. Posho

    HTTP Call-Backs Without Asynchronous Events

    Hello. This is a pretty odd issue I have but I need to find a way to use HTTP functions, call-backs and/or functions like async_load without actually using the Asynchronous Events. I've tried using the event_perform() function but there are no event_type names for any of the Async Events...
Top