http

  1. 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...
  2. FrostyCat

    Beta 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...
  3. 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...
  4. 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...
  5. 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...
  6. 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...
  7. Drturtlebot

    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...
  8. Drturtlebot

    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...
  9. 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...
  10. Gad

    Android / Amazon Fire 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...
  11. 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.
  12. 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...
  13. G

    Android / Amazon Fire 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...
  14. 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...
  15. clee2005

    Android / Amazon Fire 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...
  16. 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"...
  17. 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...
  18. BMatjasic

    HTTP_GET to get html results from .js file

    Hello everyone, I've been recently working on a small project which gets your PING by running a javascript in the background. I use the http_get method to retrieve data, but it seems only to return me the raw html and javascript format from the website, assuming that the script doesn't run. Is...
  19. L

    http_get on HTML5 export

    Hello, I'm experiencing an issue trying to get http_get to work on HTML5 platform. When I export my project to desktop (Windows), everything works fine. Once the game is executed in html5 mode, no http_ requests are working. I've tried both running html5 version on a local webserver and...
  20. kingsushi001

    [SOLVED]Quick question about md5_file(filename)

    Hi Everyone Is there a way for me to use md5_file(filename) to get the md5 hash of an online file? I've tried using something like md5_file("http://example.com/image.jpg") but it returns an empty string. Any help would be appreciated.
Top