http://192.168.100.16:5000//webapi/entry.cgi?api=SYNO.FileStation.Download&version=2&method=download&path=/video/2010.jpg&mode=open&sid=e3kYlfOEenT8A14B0MNN453413
"RokuMarkn" wrote:
Is that single quote supposed to be at the end?
--Mark
http://192.168.100.16:5000/webapi/entry.cgi?api=SYNO.FileStation.Download&version=2&method=download&path=%2Fvideo%2F2010.jpg&mode=open&sid=e3kYlfOEenT8A14B0MNN453413
"belltown" wrote:
Should that second double slash be a single slash?
And I think you need to escape your last two slashes to %2F
http://192.168.100.16:5000/webapi/entry.cgi?api=SYNO.FileStation.Download&version=2&method=download&path=%2Fvideo%2F2010.jpg&mode=open&sid=e3kYlfOEenT8A14B0MNN453413
"belltown" wrote:Not necessarily because as а "reserved character", only in certain contexts `/` must be encoded to avoid confusion from "reserved purpose" use - and it has no "reserved purpose" in a query string.
And I think you need to escape your last two slashes to %2F
"https wrote:But you are right it was worth trying the other way, because "URI consumers shouldn't treat [them] differently ... but some do."
In the "query" component of a URI (the part after a ? character), for example, "/" is still considered a reserved character but it normally has no reserved purpose, unless a particular URI scheme says otherwise. The character does not need to be percent-encoded when it has no reserved purpose.
"squirreltown" wrote:
Well that didn't change anything on the Roku.
In the browser it works with a double slash or a single slash (!), and the path part works without escaping the slashes. Not understanding this.
"Making Requests" wrote:...
- _sid: Authorized session ID. Each API request should pass it, which is retrieved from the response of /webapi/auth.cgi, via either HTTP/HTTPS GET/POST method with “_sid” argument. Otherwise, if you pass it within “id” value of cookie of HTTP/HTTPS header, this parameter can be ignored.
"EnTerr" wrote:
@squirreltown - see https://global.download.synology.com/do ... _Guide.pdf"Making Requests" wrote:...
- _sid: Authorized session ID. Each API request should pass it, which is retrieved from the response of /webapi/auth.cgi, via either HTTP/HTTPS GET/POST method with “_sid” argument. Otherwise, if you pass it within “id” value of cookie of HTTP/HTTPS header, this parameter can be ignored.
I bet you are missing "Step 2: Log in" from the "API Workflow". URL works in browser because of cookies but for Roku you'll have to "explicitate" the SID.
"RokuMarkn" wrote:
Which method produces the "invalid path" error? Can you post some code? I've not been able to reproduce this using roUrlTransfer with your URL.
We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. You will not be able to log in or post new comments or kudos during this time. Read more here.
Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 12 and you may notice reduced functionality.
In the meantime, for additional assistance, visit our Support Site.
Thanks for your patience — we’re excited to share what’s next!