AnsweredAssumed Answered

How can I use Notification Method do a curl HTTP POST

Question asked by GuanHua1378 on Dec 12, 2016
Latest reply on Dec 22, 2016 by jmayer

I am have problem doing a HTTP POST batch script when Variable from Notification NX_SUMMARY contain (Quotations marks"") ,(hyphen -) ,(ampersand &) (space ) data.
When I copy the context of the notification and try to pass it to a cmd variable myecho (" " Some - in 'missing' & "Value" not 'right') to the cmd prompt, it display error message'"Value"' is not recognized as an internal or external command, operable program or batch file.



How can I use the use the notification context in curl.exe to do a HTTP POST with C:\Curl.exe http://myserver/cmd/system/api/sendsms.cgi?tar_num=555^&tar_msg=%NX_SUMMARY%


Update on notification method with curl.exe.

When using direct notification to do http post the receiving server was unable to handle the load of about ( 100 per second)

To limit the amount of post to the server, I change the notification method to write to file only.Then using batch file to run the curl posting sequentially with the extracted NX variable from each file.

But after having email service available, have switch to email notification for simplicity management.