HTTP Request docs outdated?
Monkey Forums/Monkey Programming/HTTP Request docs outdated?
| ||
Hello, VERSIONS.TXT says that https was introduced in 72b for android, ios, win8, html5 and flash. Docs say glfw, android, ios and html5 targets. Which one should be correct? Also, is the librarly supposed to do https or just plain http requests? Thanks! |
| ||
VERSIONS.TXT is correct "Implemented custom https friendly HttpRequest for android, ios, win8, html5, flash." Where in docs are you looking? |
| ||
I'm using JungleIDE and I clicked the documentation from there. I dig into the source files and found sources in native for android, html5,ios, and winrt. I don't see any flash there (TBH, I haven't tried it myself yet since I don't have the FLASH SDK). Anyway, I'm trying to communicate with a REST API from a monkey app (HTML5) but I'm struggling a bit since rest API is resting on local host and monkey app is ran from a Parallel's Virtual Machine with Windows XP. If I paste the url in the browser I get the correct response. But from monkey, a get response doesn't work. |
| ||
Try using this for testing your REST API https://chrome.google.com/webstore/detail/postman-rest-client-packa/fhbjgbiflinjbdggehcddcbncdddomop Which browser as you using? Problem might be related to security settings in your browser. HTTP does for sure work in HTML5 target I know because I use it for authentication in some apps. If you are trying to use HTTPS on a server without HTTPS setup you might have problems there! I don't know enough about your setup to suggest more but for sure there is a solution to make it work. What is your API made with? A https://www.nitrous.io/ box might be useful in your testing. |
| ||
Hi Soap, Thanks for your help! Very useful links you gave me :) As for the problem, it had to add a header to the HTTP response (had to add Access-Control-Allow-Origin). I'm doing my rest API in GO. I'll leave the configuration of the https at the end; right now I'm just working through the API. |