开发者

REST client HTTP multipart support

I have a 3-rd party REST domain that requires doing HTTP multipart POST requests in order to create/update resources. Moreover, getting resource representation is done by a GET request where the response is expected to be a multipa开发者_如何转开发rt HTTP (the multipart HTTP messages are used for 2 main purposes: 1 - attaching binary files to the resources representation, 2 - performing batch operations - each part in the multipart message is a sub-task of a composite task.

My question is: is there a .Net client library that supports both posting HTTP multipart requests and getting HTTP multipart responses?


You'll probably have to "throw your own" like with REST in general.

For multipart/mixed in particular, you have to supply as boundary to separate the different parts document parts. This boundary can only be chosen well, if you know exactly what the data you are getting looks like.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜