Curl --cookie /api/v2/torrents/add #20133
Harryb382003
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I had been having an issue with cookies when attempting to add a torrent.
I have been using the following code to gather "info" from qBt:
curl -K curl_info
where:
is the contents of the config file. This works fine. Note the line for cookies.
When trying to add using this configuration:
I get the "forbidden" error.
If I switch -b "curl_cookies.txt" to -b "SID=<cookie_data>" it behaves as it should.
As we know it is the second method that is documented in the wiki.
It just seems so natural to me to use -b "curl_cookies.txt" for adding the torrent because it just worked to get info, whereas -b "SID=<cookie_data>" seems somewhat inconsistent even though it is documented.
I am wondering if I should submit this as a bug/feature request?
Beta Was this translation helpful? Give feedback.
All reactions