Req #68991 [Opn]: expose curl_mime_headers()
Edit report at https://bugs.php.net/bug.php?id=68991&edit=1
ID: 68991
Updated by: cmb@php.net
Reported by: arekm at maven dot pl
-Summary: expose CURLFORM_CONTENTHEADER
+Summary: expose curl_mime_headers()
Status: Open
Type: Feature/Change Request
Package: cURL related
PHP Version: 5.6.5
Block user comment: N
Private report: N
New Comment:
While I don't think that it makes sense to add support for
CURLFORM_CONTENTHEADER at this, since curl_formadd()[1] is
deprecated as of libcurl 7.56.0, adding support for
curl_mime_headers()[2] appears to be reasonable.
[1] <https://curl.haxx.se/libcurl/c/curl_formadd.html>
[2] <https://curl.haxx.se/libcurl/c/curl_mime_headers.html>
Previous Comments:
------------------------------------------------------------------------
[2015-02-05 13:16:05] arekm at maven dot pl
Description:
------------
Hello.
Currently there is no way to add own headers to particual single part of multipart post in PHP.
On the other hand curl is providing a way to do is by using
CURLFORM_CONTENTHEADER in curl_formadd.
So this is a request about exposing CURLFORM_CONTENTHEADER in php curl extension.
Expected result:
----------------
Ble able to add own header for example Content-ID like in this part of multipart post message:
-_=_swift_v4_142313037854d33f0a1fcfc_=_
Content-Type: image/gif; name=logom.gif
Content-Transfer-Encoding: base64
Content-Disposition: inline; filename=logom.gif
Content-ID: <1423130378.54d33f0a1029c@host.lan>
R0lGODlhcgE8APcAAAAAAP////7+/kVFRf/7/f79/j09Pjs7PDk5OkVFRkFBQj8/QGNjZP39/v3+
/vn6+vv//fj8+P7//vHy8eLj4tXW1bm6uYaHhtfsz+nz5ViuLt/u2PD47Pr8+VGoIVKpIlOpJVSp
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=68991&edit=1
Thread (2 messages)