Last active
April 14, 2020 21:43
-
-
Save Pwera/16dfcc5e4eeeb19a316b130f1c8c3882 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cheerp/clientlib.h> | |
#include <cheerp/client.h> | |
using namespace client; | |
// webMain is the entry point for web applications written in Cheerp | |
void webMain() | |
{ | |
//Synchronous mode | |
client::XMLHttpRequest* xhr=new client::XMLHttpRequest(); | |
xhr->open("GET","/someurl",false); | |
xhr->send(); | |
String* response=xhr->get_responseText(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment