Jump to content

Ruby request getting denied


GimmeThoseBits

Recommended Posts

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 res

and 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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...