$url = 'https://'.$domain.'/rest/task.item.getdata.json'; $arFields = array('auth' => $auth, 'taskId'=>$tid); $res = PostUrl($url, $arFields);