tool fetch returing 401 while curl and postman succeed with 200

I’ve been trying to create a script for PIA’s port forwarding feature, so I’ve come up with following:

/tool fetch url=“https://gw:19999/bindPort” http-method=get http-data=“payload=payload&signature=signature”

However when called from curl, postman etc on my local machine it succeeds with 200. On tik, it returns 401 Unauthorized. I’ve tried different machines and they didn’t have such problem. Any idea why it might be the case? Are there some limitations on what tool fetch can not do?

PS. Get is not a mistake but a way PIA designed this.

Changed format to /tool fetch url=“https://gw:19999/bindPort?payload=payload&signature=signature” mode=https didn’t help.

UPDATE After setting output=none it worked. Guess by default fetch is trying to download a file and is using url to determine the filename.