Comments (10)
I've merged this to master now which means it will be in the latest beta in 15-30 minutes and released in v1.67
Thank you to @KDreynolds for implementing it.
I'll close this issue now.
( Note @KDreynolds that the words in the commit have to be fixes #xxx
to auto close an issue )
from rclone.
I can begin working on this if no one else is.
from rclone.
% rclone copy --dump bodies --http-no-head -vv --http-url 'https://www.google.com' ':http:search?q=rclone' /tmp
I think this command invocation is wrong...
I think it should be
rclone copy --dump bodies --http-no-head -vv --http-url 'https://www.google.com/search?q=rclone' ':http:' /tmp
Parts of the URL need to go into the --http-url
- things after the :http:
are expected to be directory of file names which will need the ?
URL encoding.
from rclone.
I see no reason why anything beyond scheme + hostname needs to go into the --http-url param. Seems like a misinterpretation of the W3C URL spec. For example, in my use case the part that goes into --http-url is scheme + host name and the rest of the URLs all come from the contents of --files-from. This allow to access a list of arbitrary URLs on that host, not just URLs from a given fixed prefix within a host.
from rclone.
I see no reason why anything beyond scheme + hostname needs to go into the --http-url param.
That is how the http backend was designed.
Remember (in normal use) it reads links from web pages and it ignores all URLs with ?
parameters. Any escaped ?
are treated as part of the path. This is so you can have file names with ?
in.
For example, in my use case the part that goes into --http-url is scheme + host name and the rest of the URLs all come from the contents of --files-from. This allow to access a list of arbitrary URLs on that host, not just URLs from a given fixed prefix within a host.
That is an interesting use case for the http backend, but it isn't how it was designed to work. It was designed to read the file listings generated by webservers.
Perhaps we need a new flag --http-no-escape
which means don't escape the URL metacharacters in the path names? Or maybe a specific flag --http-urls-from
meaning don't parse any web pages, just use these URLs.
from rclone.
Perhaps we need a new flag
--http-no-escape
which means don't escape the URL metacharacters in the path names?
Yes, that would be perfect!
from rclone.
@whoschek do you want to have a go at adding such a flag?
from rclone.
@whoschek do you want to have a go at adding such a flag?
Thanks, but I'm afraid I don't have the cycles in the foreseeable future :-(
Looks like @KDreynolds would be up for it, though.
from rclone.
Finally got around to taking a crack at this one. PR #7777
from rclone.
I always find new ways to do something small wrong lolsad, thank you!
from rclone.
Related Issues (20)
- uloz backend, copyto doesn't work (Error 60001 (422): Validation failed) HOT 8
- Web Dav mount files appear as 1999-09-04 date HOT 1
- armv5tejl arch Illegal instruction HOT 3
- Options recover and max-lock missing in cmd/bisync/rc.go HOT 3
- Cannot access SMB share via Kerberos HOT 2
- Add "cryptdecode" function as a flag (--cryptdecode remote:) to copy/move/etc. commands?
- rclone lsf with --include argument can not find the Correct file HOT 5
- WebDAV: Indicate final file size when doing chunk upload
- please ignore HOT 3
- Support Permanent delete in OneDrive/Sharepoint HOT 5
- Recursively lock/unlock files from remote:path in Google Drive HOT 3
- Feature request: Hasher, copy hashes on server-side copy (maybe simple copy too)
- --files-from doesn't seem to play nicely with --links HOT 2
- `rclone ls` does not exit with an error code on various cloud backends when file doesn't exist HOT 2
- Hasher: trust cached sum
- Git backend? HOT 2
- Windows: Destination Encoding characters are improperly escaped HOT 4
- OAuth tokens fail to refresh when they are provided as a JSON blob (for native-app clients) HOT 2
- HDFS remote fails to copy file with " Received error: unexpected EOF" HOT 5
- Implement WebHDFS to acces remote HDFS storage HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rclone.