php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #68991 expose curl_mime_headers()
Submitted: 2015-02-05 13:16 UTC Modified: 2020-03-12 16:29 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: arekm at maven dot pl Assigned:
Status: Open Package: cURL related
PHP Version: 5.6.5 OS:
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: arekm at maven dot pl
New email:
PHP Version: OS:

 

 [2015-02-05 13:16 UTC] 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



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-03-12 16:29 UTC] cmb@php.net
-Summary: expose CURLFORM_CONTENTHEADER +Summary: expose curl_mime_headers()
 [2020-03-12 16:29 UTC] cmb@php.net
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>
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 11:01:29 2024 UTC