sending program to rest service