02-25-2013 01:34 PM - edited 03-14-2019 11:18 AM
Hi,
By any chance we can initiate an HTTP GET request to an external web server? Now I am only aware it can generate and send a response.
Highly appreciated.
Q
02-25-2013 02:12 PM
Hi,
for sure you can initiate HTTP get to an external web server, then you receive the info you need in xml file
HTH
Anas
please rate if it is helpful
02-25-2013 07:50 PM
Hi, Anas,
Thanks. I guess I should use Create XML Document to send the request to external web server, correct?
Also, how can I responde to an HTTP GET request with a 200 OK or 400 bad request?
Q
02-26-2013 02:17 AM
Hi, yes, you can use that step too, but be aware of the fact that it does not issue the actual HTTP request, only a reference object to the remote resource. You can use the Cache Document step or the Get XML Data step. If you use multiple Get XML Data steps in your script, it will do multiple HTTP requests, so if it's not desired, you should use the Cache Document step first.
G.
02-26-2013 11:31 AM
Thanks, Gergely,
For HTTP response, what code is being used? How can I customize it?
Q
02-26-2013 01:13 PM
Er... not sure what you are aiming at, but if you mean UCCX as a web server, then it's the Send HTTP response step.
If you mean the format expected by the Get XML Data step, it's plain ordinary XML.
G.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide