[Progress Communities] [Progress OpenEdge ABL] Forum Post: REST Services and Cookies

  • Thread starter Thread starter heicomarkl
  • Start date Start date
Status
Not open for further replies.
H

heicomarkl

Guest
I am brand new to REST - needed to state that straight off. I have created a REST service that will need to read cookies that are being sent from a foreign application into the rest service. I have used the samples that are available all over to create the REST service and it is responding to requests from the foreign application. My big problem is accessing the cookies. I have searched and found the code that gets the cookies into the EXTENT variable: DEFINE VARIABLE oClient AS IHttpClient NO-UNDO. DEFINE VARIABLE oReq AS IHttpRequest NO-UNDO. DEFINE VARIABLE oResp AS IHttpResponse NO-UNDO. DEFINE VARIABLE oCookies AS Cookie EXTENT NO-UNDO. oResp:GetCookies(oCookies). My question is - how do I get the IHttpRequest or IHttpResponse information. How is it available to the server session? If I just run the above code in the Read method of the BusinessEntity that I have created, I get invalid handle messages in the log files and there is nothing in the cookie information obviously. Can someone please share some code that will help me establish the connection to the session so I can retrieve the cookies and the information in them? Thanks very muich Mark

Continue reading...
 
Status
Not open for further replies.
Back
Top