--TEST-- CURL file uploading from stream --EXTENSIONS-- curl --FILE-- $file); var_dump(curl_setopt($ch, CURLOPT_POSTFIELDS, $params)); var_dump(curl_exec($ch)); curl_close($ch); ?> --EXPECT-- bool(true) string(24) "i-love-php|text/plain|11"