Search found 5 matches

by zarexogre
Wed Jan 25, 2017 10:20 am
Forum: Development
Topic: Get a list of torrent statuses via json rpc using php and curl.
Replies: 8
Views: 13076

Re: Get a list of torrent statuses via json rpc using php and curl.

Same result:

http://myserver.com:8112/json

core.get_torrents_status

_session_id=a1ca19a23d141a1d352132270435511e2007

HTTP/1.1 500 Internal Server Error
Date: Wed, 25 Jan 2017 10:19:44 GMT
Content-Length: 0
Content-Type: text/html
Server: TwistedWeb/14.0.2
by zarexogre
Wed Jan 25, 2017 10:02 am
Forum: Development
Topic: Get a list of torrent statuses via json rpc using php and curl.
Replies: 8
Views: 13076

Re: Get a list of torrent statuses via json rpc using php and curl.

Could be I am testing remotely, I will dump code on server and try and see what happens.
by zarexogre
Mon Jan 23, 2017 9:48 am
Forum: Development
Topic: Get a list of torrent statuses via json rpc using php and curl.
Replies: 8
Views: 13076

Re: Get a list of torrent statuses via json rpc using php and curl.

Found a post that showed me how to do the auth with curl command line: curl -c cookies.txt --compressed -i -H "Content-Type: application/json" -H "Accept: application/json" -X POST -d '{"method": "auth.login", "params": ["password"], "...
by zarexogre
Mon Jan 23, 2017 9:43 am
Forum: Development
Topic: Get a list of torrent statuses via json rpc using php and curl.
Replies: 8
Views: 13076

Re: Get a list of torrent statuses via json rpc using php and curl.

Not 100% how I would do this with auth? Any chance you have an example of this using curl from command line?
by zarexogre
Thu Jan 19, 2017 11:09 am
Forum: Development
Topic: Get a list of torrent statuses via json rpc using php and curl.
Replies: 8
Views: 13076

Get a list of torrent statuses via json rpc using php and curl.

I have the following code which seems to authorized successfully as I get session back, but then i try and call the get_torrents_status and I get 500 error, I have run daemon with -L option but the log is no help. Can you help advise on how to get a list of torrents statuses in php, have searched ev...