I have a plugin in which I can login to my website through a web page in sketpchup. After login I want to send a request to my web site server, so the request was authorized. In order to do that, I have to set some httponly cookies("__RequestVerificationToken" in my case) in the reuqest, but I don’t know how to get these cookies brom the browser in ruby api,
When initially I make a request from the ruby api I can get all cookies from the response using the following code:
res = Net::HTTP.start(uri.hostname, uri.port) do |http| http.request(req) end newCookie = res.get_fields('set-cookie').split('=').split("\;")
But I need to get cookies from sketchup browser, How can I do that?