I'm trying philips hue with Swift. I want to turn on the light using HTTP request. I'm using Net for HTTPRequest https://github.com/nghialv/Net
let net = Net()
let params = ["on":true]
let puturl = "http://[IP Address]/api/[username]/lights/1/state"
net.PUT(absoluteUrl: puturl, params: params, successHandler: { (responseData) -> () in
println("success")
}) { (err) -> () in
println("err")
}
Xcode print "success" but the light can't turn on. Please let me know why the reason.