On Tue, 29 Aug 2023 13:31:48 +0200, Vojtěch Zeisek <vojtech.zeisek@opensuse.org> wrote:
Dne úterý 29. srpna 2023 12:29:38 CEST, Dave Howorth napsal(a):
On Tue, 29 Aug 2023 11:50:47 +0200 Vojtěch Zeisek wrote:
Dne úterý 29. srpna 2023 11:45:33 CEST, Dave Howorth napsal(a):
On Mon, 28 Aug 2023 23:48:06 +0000 (UTC)
Robert Webb via openSUSE Users wrote:
Question: Is there a way to download the pasted text from paste.opensuse.org? I had to copy and paste it into a file. The "Raw" link did not work. 'elinks -dump URL' got the page, but without the pasted contents.
The raw link works for me and displays https://s3.opensuse-project.net/paste-o-o/12nuvsnsjw2vd1jtr 2dat1sn3wog?response-content-disposition=inline%3B%20filena me%3D%22f8130a6f28fca9e0710246a5c84c3619.txt%22%3B%20filena me%2A%3DUTF-8%27%27f8130a6f28fca9e0710246a5c84c3619.txt&res ponse-content-type=text%2Fplain&X-Amz-Algorithm=AWS4-HMAC-S HA25&X-Amz-Credential=YI5KOnADj6WdQSae%2F20230829%2Fus-east -1%2Fs3%2Faws4_request&X-Amz-Date=20230829T094057Z&X-Amz-Ex pires=300&X-Amz-SignedHeaders=host&X-Amz-Signature=e20fb6ad ffa078e7b9ab4a66901a6e9491a7defb29edbc55a5733fd6b72bb008 I can then 'save page as' to download it or whatever else.
This indeed works, but only for limited time. The link expires pretty soon (but I didn't do any measurements).
Well it's still there now. I'm not sure what you call 'pretty soon'?
If I remember correctly, it expired within ca. an hour or so, or soon after I closed the window. Well, the whole URL contains "...Amz-Expires=300&X..." which does suggest something. Interestingly, when I again open my saved paste, I get different download link.
I can confirm this. Thank you both. Each time the page [1] is loaded, yes, the "Raw" link is different, containing a new timestamp and signature. The "Raw" link on an old page does not work (I don't know the timeout value either), but the link on a freshly loaded, or refreshed, page does work. BTW, using wget to download the "Raw" URL creates a "beautiful" file name: 12nuvsnsjw2vd1jtr2dat1sn3wog?response-content-disposition=inline; filename="f8130a6f28fca9e0710246a5c84c3619.txt"; filename*=UTF-8''f8130a6f28fca9e0710246a5c84c3619.txt&response-content-type=text%2Fplain&X-Amz-Algorithm=AWS4-HMAC-SHA256 [1] https://paste.opensuse.org/b607972c1e8a -- Robert Webb