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) )); Quote 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? Quote Link to comment https://forums.phpfreaks.com/topic/252162-curl-content-type-setting/#findComment-1292828 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.