Comments (6)
I suggest basic_auth because we may encounter different domain with different username/password. This way before making a request, we could fetch in a data structure (maybe a hashtable) a username/password.
From the command line, we need to be able to specify triplets separated with a ,
(or something else) with domain/username/password.
Reading from a file the same data could be better at first
from suckit.
@Skallwar I'm interested in taking this on if it's available!
Go ahead ;)
from suckit.
Yes, thanks for the report 👍
from suckit.
@Skallwar I'm interested in taking this on if it's available!
from suckit.
@Skallwar from looking into this a bit, it looks like HTTP basic auth is already supported by reqwest
if you supply the credentials in the URL itself like "https://username:[email protected]/". Is this still something you'd want to implement command line options for?
If so, from what I'm seeing we could either set default HTTP basic auth headers in the client
field of Downloader
which would require adding the base64
crate as an explicit dependency (because reqwest
only has a helper method for RequestBuilder
), or we could add username
and password
fields to Downloader
that are set either on each URL
or on each request.
Let me know what you think the best approach is, thanks!
from suckit.
Closed with #96
from suckit.
Related Issues (20)
- Quoting issue on charset detection HOT 3
- Unicode handling of --include and --exclude HOT 8
- Give tl a try HOT 1
- Solved: error: linkr 'cc' not found during install HOT 2
- Proxy support HOT 8
- Panic when folder path with dot serves a webpage HOT 3
- Incorrect local URLs on an index_no_slash.html HOT 2
- Failure in name resolution on books.toscrape.com HOT 1
- Fix release cross compilation CI HOT 1
- Only download certain filetypes HOT 1
- Crash with v0.2.0 HOT 3
- Build for riscv64
- Exclude already downloaded file HOT 1
- Make URL Processing optional HOT 3
- Add URLs to depth tree from CSS HOT 4
- Stuck thread on silent connection close HOT 12
- Create issue template
- Resume download for large websites HOT 2
- Moving currently downloaded files and folders HOT 1
- Not a directory (os error 20) - Error while cloning wiki.raregamingdump.ca HOT 3
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 suckit.