When i am executing curl command from command prompt, I am getting 200 OK as response but when I am setting curl_setopt() as mentioned above and trying to execute the command using curl_exec() response is 500, Unspecified error