Updated curl_post parameter setup

Changed the headers parameter in the curl_post() function to accept
arrays in a key>value format rather than just values to make things a
little neater and more organized (when using the function)