10-31-2019 11:32 AM - edited 10-31-2019 03:10 PM
I'm trying to get a response from a simple url request with the api, but I can't seem to find a way to get the return information back. I'm able to post information to a website correctly, but there is supposed to be a return body that displays if it was successful or not. The following code is similar to what i'm trying to run. I want to be able to post information to a webserver, and get a response back from the page that is requested.
function run_command() { var url = 'http://192.168.0.1/index.html&data=test'; var response = xapi.command('HttpClient Get', { 'Url': url});console.log(response);}
}
Solved! Go to Solution.
11-01-2019 03:42 AM
Hi, I have written something about this in the following blog post:
Hope it is helpful.
/Magnus
11-01-2019 03:42 AM
Hi, I have written something about this in the following blog post:
Hope it is helpful.
/Magnus
11-12-2019 01:56 PM
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: