So far this is what I've come up with.
RestClient.proxy = ENV("http_proxy")
RestClient.head("Cookie","accessToken=#{@GottenTokenString}") #this line not working
resp = RestClient.get("http://someServer/path/RestAPIPage.json",{:params => {:count => @count, :userCount => @userCount}})
The problem I have here is that I can't seem to add any headers to the get request. The API I am calling requires that a token be obtained and set to a cookie header. Seems that the REST API can't handle this.
The reason I've decided to use this the RESTCLIENT gem is because the NET::HTTP.get does not allow the usage of methods that allow adding a query. Summarizing, I can't add headers with RESTCLIENT. But I can't add queries with NET::HTTP.
I'm really stumped.