Http socket request header

I’ve been working with the Resty program that Paul Lefebvre wrote and can be found here: http://blog.xojo.com/test-web-services-with-rest-tester

What I find kind of confusing is how to include headers within a request. There is a function listed in the Httpsocket documentation called SetRequestHeader but it seems like that may have been deprecated since it does not come up as a useable function of the current Httpsocket object. If SetRequestHeader cannot be used, is there an alternate way to set a request header?

Kevin here is an JSON/RPC example of how I am setting my request headers using the old framework. FYI

  eAPI_SSL.SetRequestHeader("Accept", "*/*")
  eAPI_SSL.SetRequestHeader("Accept-Encoding:","gzip,deflate,sdch")
  eAPI_SSL.SetRequestHeader("Accept-Encoding:","application/json-rpc")
  eAPI_SSL.SetRequestHeader("User-Agent:","Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.101 Safari/537.36")
  eAPI_SSL.SetRequestHeader("Connection", "keep-alive")
  eAPI_SSL.SetRequestHeader("Accept-Language", "en-US,en;q=0.8")

If you are using Xojo.Net.HTTPSocket, you can use the RequestHeader method to set or get the request header.

Thanks, Paul, that’s just what I needed.