Skip to content

Support multipart/related and multipart/mixed MediaTypes in RestTemplate #23159

@sethcleveland

Description

@sethcleveland

Affects: <v5.2.0.M3>

At the moment, the RestTemplate posts multipart with Content-Type: multipart/form-data.

We have a requirement to post multipart data with a Content-Type of multipart/mixed or multipart/related.

C# provides flexibility for this with a MultipartContent with a subtype parameter.

https://docs.microsoft.com/en-us/dotnet/api/system.net.http.multipartcontent.-ctor?view=netframework-4.8#System_Net_Http_MultipartContent__ctor_System_String_

Any recommendations?

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions