Just another Perl shrine | |
PerlMonks |
How do I make a multipart/mixed request (for REST API) in Perl?by YenForYang (Beadle) |
on Nov 28, 2017 at 13:41 UTC ( [id://1204434]=perlquestion: print w/replies, xml ) | Need Help?? |
YenForYang has asked for the wisdom of the Perl Monks concerning the following question: I'm having difficulty finding any sort of module or documentation on making multipart/mixed requests. Note this is not for sending an email--I'm trying to use the Google Drive v3 REST API, specifically the batch request (see below). There is an non-Perl "example" given by Google on the Batching Requests page: Example batch requestPOST https://www.googleapis.com/batch Accept-Encoding: gzip User-Agent: Google-HTTP-Java-Client/1.20.0 (gzip) Content-Type: multipart/mixed; boundary=END_OF_PART Content-Length: 963 For example, I want to be able to use these specific calls to update/delete a permission (using PATCH or DELETE semantics) using batch requests: P.S. does anyone know if some key-value pairs can be unspecified--Content-Length, for example, in the above request
Back to
Seekers of Perl Wisdom
|
|