For an HTTP driver, one of the API calls responds data as zipped attachment. Is the attachment captured by the Response Content @pid parameter (pid = 18 in this case) or how can we capture the attachment?
<Session id="8" name="Get Events Log">
<Connection id="1" name="Get Events Log">
<Request verb="GET" url="/ws/events/log">
</Request>
<Response statusCode="10">
<Content pid="18"></Content>
</Response>
</Connection>
</Session>
The response HTTP headers:
Content-Type: application/zip
Content-Disposition: attachment; filename=DP591-eventlogs-XXXXXX-16Nov2020-0153.zip;
Transfer-Encoding: chunked
The data payload of the zip will indeed be available in the content of parameter with ID 18. However up until now we have always interpreted the response as text and will forward the data as a null-terminated UTF-8 encoded string to SLProtocol. This will result in not being able to interpret the zip based on the parameter data anymore.
I have created a task (ID: 141589) on one of our internal projects that will take care of not touching the data anymore if the data payload is not text. Feel free to move it around to another project if needed for a certain delivery.