<?xml version="1.0"?>
<?xml-stylesheet 
 href="http://www.w3.org/2000/08/w3c-synd/style.css" type="text/css"
?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel rdf:about="http://pear.php.net/bugs/13611/bug">
    <title>PEAR Bug #13611</title>
    <link>http://pear.php.net/bugs/13611</link>
    <description>[Open] add optional content-type header to multipart/form-data post elements</description>
    <dc:language>en-us</dc:language>
    <dc:creator>pear-webmaster@lists.php.net</dc:creator>
    <dc:publisher>pear-webmaster@lists.php.net</dc:publisher>
    <admin:generatorAgent rdf:resource="http://pear.php.net/bugs"/>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
    <items>
     <rdf:Seq>
      <rdf:li rdf:resource="http://pear.php.net/bugs/13611"/>
     </rdf:Seq>
    </items>
  </channel>
    <item rdf:about="http://pear.php.net/bugs/13611">
      <title>tristanl</title>
      <link>http://pear.php.net/bugs/13611</link>
      <description><![CDATA[<pre>HTTP_Request Feature/Change Request
Reported by tristanl
2008-04-07T04:20:56-00:00
PHP: 5.2.4 OS: w32 Package Version: 1.4.2

Description:
------------
RFC 2388 part 3. says all parts in a multipart/form-data request can have an optional content-type (which can include a charset also).

I've added this as a parameter to addPostData() (similar to the declaration for addFile()).

The change is implemented by adding an array member to the class, called postDataContentTypes.  Each value in this array applies to a &quot;root&quot; form element (so it applies to each element in an array form value).  This has meant customising the flattenArray() function so that it is now no longer generic - it references this member variable.

The result of flattenArray now returns a value/type pair in an array instead of just a single value, and the code in buildRequest is modified accordingly



Test script:
---------------
see attached patch</pre>]]></description>
      <content:encoded><![CDATA[<pre>HTTP_Request Feature/Change Request
Reported by tristanl
2008-04-07T04:20:56-00:00
PHP: 5.2.4 OS: w32 Package Version: 1.4.2

Description:
------------
RFC 2388 part 3. says all parts in a multipart/form-data request can have an optional content-type (which can include a charset also).

I've added this as a parameter to addPostData() (similar to the declaration for addFile()).

The change is implemented by adding an array member to the class, called postDataContentTypes.  Each value in this array applies to a &quot;root&quot; form element (so it applies to each element in an array form value).  This has meant customising the flattenArray() function so that it is now no longer generic - it references this member variable.

The result of flattenArray now returns a value/type pair in an array instead of just a single value, and the code in buildRequest is modified accordingly



Test script:
---------------
see attached patch</pre>]]></content:encoded>
      <dc:date>2008-04-07T04:20:56-00:00</dc:date>
    </item>
</rdf:RDF>