Search found 4 matches
- Sun Nov 04, 2012 9:54 pm
- Forum: Development
- Topic: [JSON API] Ajax calls using jquery
- Replies: 7
- Views: 7415
Re: Ajax calls using jquery
Cas, I used the -c flag with auth.login and the -b flag to read it with the following calls but I am still getting the not authenticated error. tom@bergerserver:~$ curl -c cookies.txt --compressed -i -H "Content-Type: application/json" -H "Accept: application/json" -X POST -d '{&...
- Sun Nov 04, 2012 7:44 pm
- Forum: Development
- Topic: [JSON API] Ajax calls using jquery
- Replies: 7
- Views: 7415
Re: Ajax calls using jquery
Cas changing those lines did not work but I ended up getting around the cross domain request issue by setting up a reverse proxy. I am having another problem now though with the authentication process. Even after I call the auth.login method and successfully authenticate, whenever I try to call any ...
- Sat Nov 03, 2012 12:31 am
- Forum: Development
- Topic: [JSON API] Ajax calls using jquery
- Replies: 7
- Views: 7415
Re: Ajax calls using jquery
Thanks for the response Cas. I was looking into CORS but wasn't sure how to implement it. I was going through deluge's source to see where I could potentially change the header the server sends. If I add a Access-Control-Allow-Origin header in this send_response function do you think that this will ...
- Fri Nov 02, 2012 9:56 pm
- Forum: Development
- Topic: [JSON API] Ajax calls using jquery
- Replies: 7
- Views: 7415
[JSON API] Ajax calls using jquery
I'm trying to call deluge-web using jquery's $.ajax() function but for some reason it is not working. I think it may be a cross domain request issue. I know the server is definitely working because I get responses when using curl. Here is a sample curl call and its equivalent jquery call (or so I th...