fedarovich / qbittorrent-cli

Command line interface for QBittorrent
MIT License
303 stars 16 forks source link

Can't set up qbt-cli to work with Basic Auth #49

Closed dmilojevic closed 8 months ago

dmilojevic commented 3 years ago

Hello. I am trying to use qbt clie in the following scenario.

qBittorrent web ui is available via Apache reverse proxy with Basic Auth on the url like https://example.mydomain.com/.private/qb/. I try to set up qbt-cli in the following way: qbt network settings -i true qbt settings set url https://example.mydomain.com/.private/qb/ qbt settings set username myaccount qbt settings set password

When I try to execute something like qbt server info I get the error message "Response status code does not indicate success: 404 (Not Found)."

When I check Apache access log I see the following "GET /version/api HTTP/1.1" 404 3341 "-" "-" "POST /api/v2/auth/login HTTP/1.1" 404 424 "-" "-"

I'm confused. Why is qbt cli not trying at least to check the api version in the subdirectory of the url I supplied?

Thanks a lot in advance!

zhongfu commented 1 year ago

probably a dupe of #30

fedarovich commented 8 months ago

Yes, it's a duplicate of #30.