curl-and-php
changing mime-type of file post
Date: Tue, 24 Apr 2007 07:02:29 +0300
I created a "form" (php code)
curl_init()
....
$form['file0'] = "@$ffpath";
curl_exec
....
the CURL send the form fine but send it without the ability to change
the mime-type of the file that I post.
and seem it pick "wrong" mime-type for the file
I tried something like
"@$ffpath;type:....";
to change it but with no success
CURL return error. cant build form.
I tested it on Win32-platform, CURL version 462848 returned by the
curl_version function.
what question is: how would I make the change to the mime-type. I
couldn't figure a solution reading the documentation or any other resource.
thanks.
(I posted the message also on the c++ wrap list accidentally)
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2007-04-23