bsmurfy Posted November 30, 2011 Share Posted November 30, 2011 Hi All, I'm trying to upload a gif file via php/curl, and the browser keeps interpreting the content-type as application/xml. I've tried explicitly setting the content type, see below, but it has no effect. Any thoughts? I've seen conflicting posts on the ability to specify the content-type with curl/php. curl_setopt($session, CURLOPT_HTTPHEADER, array( "Content-Type: image/gif", 'Content-length: ' . strlen($post) )); Link to comment https://forums.phpfreaks.com/topic/252162-curl-content-type-setting/ Share on other sites More sharing options...
scootstah Posted November 30, 2011 Share Posted November 30, 2011 Can we see the rest of the code? Link to comment https://forums.phpfreaks.com/topic/252162-curl-content-type-setting/#findComment-1292828 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.