dot-CurlAddAttachments: Add attachments to a curl handle using the...

.CurlAddAttachmentsR Documentation

Add attachments to a curl handle using the multipart/form-data MIME type.

Description

Add attachments to a curl handle using the multipart/form-data MIME type.

Usage

.CurlAddAttachments(handle, method, attachments)

Arguments

handle

a curl handle returned by curl::new_handle()

method

a string specifying the HTTP method (which must be "POST")

attachments

a named list of attachments, where the name is the attachment's fileame. Each attachment is a named list where $data is the data being attached, and $content_type is the Content-Type to use for the attachment.o


Paradigm4/SciDBR documentation built on Nov. 9, 2023, 4:58 a.m.