Rest Api to get the size of AFPout on Zos

Previous topic - Next topic

satya_srungarapu

Using the REST API interface on z/os (POST /cmod-rest/v1/hits/{folderName}), is it possible to retrieve the size of the requested AFPout file? Alternatively, is there any method available to obtain the AFPout file size through the REST API hosted on z/os?"

Ed_Arnold

The size will be returned when the document is retrieved. Specifically, via the "Content-Length" header as shown in the example here:

https://www.ibm.com/docs/en/cmofm/10.5.0?topic=document-retrieve

Document sizes are not shown in the search results.
#zOS #ODF

satya_srungarapu

Arnold, Thank you very much for your resposne. For Example  "Content-Length: 5553" means 5553 Bytes. Correct me if Iam wrong