I spent quite a bit of time today trying to figure out why I couldn't call a REST API. After reading the php CURL options page I realized that request_headers needed to be a string not an array of key=>value.
Trying to save others the trouble.
added notes about extra http headers
fixed txt for extra http headers