We want to receive files over a REST-API in a USP from a other API.
We connect both, but we had the Status -1 (Cannot open the specified file) into DUMP_FILE_CONTENTS.
We had already a Download-url and a raw-body in this request.
This is the code:
newinstance "UHTTP",hv_UHTTP
hv_UHTTP→SET_FLAGS(16)
hv_UHTTP->DUMP_FILE_CONTENTS(sv_LOCAL_FILE_NAME, "")
hv_UHTTP→SEND(sv_DOC_FIL_NAM,"GET","","",sv_HEADERS,"",sv_RESPONSE)
if ($status == 200)
hv_UHTTP→DUMP_FILE_CONTENTS("","")
endif
Is there any possibility to get more information what happend?