How to pass HTTP headers to RC operations/copyurl call

Hello,

I would like to use operations/copyurl and I am wondering if it's possible to pass HTTP headers to the call.

The reason I need this is because the URL I would like to copy from requires an 'x-authentication' HTTP header.

I am using rclone v1.63.1.

Thank you for your time.

you have to have a look at available options to find one you need:

rclone rc options/get | grep Head
		"DownloadHeaders": null,
		"Headers": null,
		"UploadHeaders": null,

and then use options/set to set it to desired value

They correspond to header flags.

Thanks a lot! I have completely missed that!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.