I use a NextcloudPi version with Nextcloud18 installed. I would like to have a shared file with a password protection.
Then I want to send a Post-Request to the Share Link with the post parameter “password” that contains the share password, so the user does not have to type in the password.
I have read in the following thread, that this should be possible, but when I try the following error happens:
HTTP ERROR 405
It is hosted on apache2 and the output of “curl -i -X OPTIONS https://…” is:
date: Mon, 04 Jan 2021 15:28:38 GMT
strict-transport-security: max-age=15768000; includeSubDomains; preload
Would be really cool if you coud help me!
In Firefox Network Analysis (F12) i found this post-request on test server:
A lot of cookies (i think from the original site where i entered the password)
and the post-parameter
requesttoken (i think from the original site where i entered the password)
password (the password)
After that Firefox loads (GET):
with a lot of new cookies
| — | — |
thank you for your answer.
When I call the “https://…/index.php/s/…/authenticate/showShare” then I do not get an error anymore. But the password is asked even if I put the three post information into the request.
I send the request like the following:
I do not really know what I should write into the requesttoken.
What do I do wrong?
thank you for your fast answer.
The problem of the solution you posted is that I can just download the file not start the pdf-viewer.
Is there a way to call the PDF-Viewer and transfer the password?