PL/SQL (MOSC)

MOSC Banner

UTL_HTTP.ADD_COOKIES

edited Oct 20, 2010 1:59AM in PL/SQL (MOSC) 10 commentsAnswered
 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;

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center