UTL_HTTP.ADD_COOKIES
Has anyone used this procedure successfully?
I am developing an HTTP application that requires cookies. I have called the UTL_HTTP.ADD_COOKIES procedure but it does not appear to actually add the cookie to the HTTP request.
I have followed the sequence in the docs:
1. Declare local variables and index
cookie_indx BINARY_INTEGER;
cookie UTL_HTTP.cookie;
cookies UTL_HTTP.cookie_table;
2. Clear cookie cache:
UTL_HTTP.clear_cookies;
3. Set cookie support on
UTL_HTTP.set_cookie_support (req, TRUE);
4. Set cookie name and values:
cookie_indx := 1;
cookie.name := 'COOKIENAME';
cookie.VALUE := 'YES';
cookie.domain := '.com';
cookie.expire := SYSDATE + 1;
I am developing an HTTP application that requires cookies. I have called the UTL_HTTP.ADD_COOKIES procedure but it does not appear to actually add the cookie to the HTTP request.
I have followed the sequence in the docs:
1. Declare local variables and index
cookie_indx BINARY_INTEGER;
cookie UTL_HTTP.cookie;
cookies UTL_HTTP.cookie_table;
2. Clear cookie cache:
UTL_HTTP.clear_cookies;
3. Set cookie support on
UTL_HTTP.set_cookie_support (req, TRUE);
4. Set cookie name and values:
cookie_indx := 1;
cookie.name := 'COOKIENAME';
cookie.VALUE := 'YES';
cookie.domain := '.com';
cookie.expire := SYSDATE + 1;
0