View Full Version : UTL_HTTP and Cookies in
Gerald
05-04-2005, 03:49 AM
I'm currently running Oracle Server 9.2.0.1.0 .
I'm using utl_http in a pl/sql package to communicate with a Java
servlet. The servlet returns a cookie with information I need to
extract. I have cookie support enabled, but the cookie table is always
empty after sending the request and retrieving the response.
My program follows a similar to below
utl_http.begin_request(url, POST, version)
utl_http.set_cookie_support(true)
utl_http.set_header
utl_http.write_text
utl_http.get_response
utl_http.get_cookies
utl_http.get_cookie_count(). -- this conines to be zero
The cookie count continues to be zero and the cookie table is always
empty.
I'm able to display the information in the response header as well as
the information in the response.
I wrote a small java application to perform the same request to the
servlet, and I'm able to retrieve the cookie from the URLConnection
established to the servlet.
Can some one provide any ideas why UTL_HTTP is not retrieving the cookies?
Thanks
Gerald
MyLounge.com Site Map
Forum:
Cars,
Cell Phone,
Database,
Games,
Home Improvement,
IT,
Music,
School,
Sports,
Web Design,
Web Server,
Weight Loss
The MyLounge.com forum is intended for informational use only and should not
be relied upon and is not a substitute for any advice. The information contained
on MyLounge.com are opinions and suggestions of members and is not a representation
of the opinions of MyLounge.com. MyLounge.com does not warrant or vouch for
the accuracy, completeness or usefulness of any postings or the qualifications
of any person responding. Please consult a expert or seek the services of an
attorney in your area for more accuracy on your specific situation. Please note
that our forums also serve as mirrors to Usenet newsgroups. Many posts you see
on our forums are made by newsgroup users who may not be members of MyLounge.com
Term of Service
vBulletin v3.0.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.