Skip to content

Instantly share code, notes, and snippets.

@Pwera
Last active April 14, 2020 21:43
Show Gist options
  • Save Pwera/16dfcc5e4eeeb19a316b130f1c8c3882 to your computer and use it in GitHub Desktop.
Save Pwera/16dfcc5e4eeeb19a316b130f1c8c3882 to your computer and use it in GitHub Desktop.
#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