Hello everyone.
Looking for some advice. I want to send some URL variables to a JavaScript running on my localhost and trying to find the simplest way of doing so.
I don’t need to return any data from the script only send.
I tried ofhttprequest which returned the whole js file.
What’s the best and easiest way to send GET vars?
Thanks.
Hi everyone,
As I mentioned above I am trying to send variables through a url to a javascript on my localhost. I tried using ofHttpResponse below and the variables don’t seem to get to my script even though resp.data returns my script. Any thoughts?
ofHttpResponse resp = ofLoadURL("http://localhost/index.js?location=Tokyo&duration=2:89");
cout << resp.data << endl;
Thank you.