GimmeThoseBits Posted August 24, 2009 Report Share Posted August 24, 2009 Ok I thought this was a token auth thing, but now I'm not so sure.I'm making an HTTP GET request with Ruby like this:url = URI.parse('http://<myIP>:<myPort>/gui/') req = Net::HTTP::Get.new(url.path) res = Net::HTTP.start(url.host, url.port) {|http| http.request(req) } puts resand I keep getting:<Net::HTTPUnauthorized:0x2da0014>It also happens if I append the '/index.html' onto the end.The WebUI itself is working fine, and I've tried turning the webui.token_auth option off and no difference.Anyone have any ideas? Link to comment Share on other sites More sharing options...
Lord Alderaan Posted August 25, 2009 Report Share Posted August 25, 2009 Yes. You need to supply the username and password you set in the µtorrent webui options through HTTP BASIC AUTH. Link to comment Share on other sites More sharing options...
GimmeThoseBits Posted August 26, 2009 Author Report Share Posted August 26, 2009 thanks man. that did it. I'm new to ruby and new to the web api. i'm damn glad we've got this forum! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.