Mantis - Quercus
Viewing Issue Advanced Details
3282 block always 01-18-09 14:41 01-26-09 22:59
koreth  
nam  
normal  
closed 4.0.0  
fixed  
none    
none 4.0.0  
0003282: CURLOPT_POSTFIELDS doesn't handle file uploads
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://www.apple.com/"); [^]
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, array('a' => '@/etc/passwd'));
$result = curl_exec($ch);
curl_close($ch);

PHP sends a multipart request with the contents of /etc/passwd in a MIME part named "a". Quercus sends POST data of "a=@/etc/passwd".

Notes
(0003770)
nam   
01-21-09 21:12   
php/5044
(0003771)
nam   
01-21-09 21:17   
not sure if quercus is sending the correct type of request
(0003780)
nam   
01-26-09 22:59   
php/5044
php/5045