Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

UTL_HTTP and multiline headers. Possible bug?

Eric Olson 1Feb 17 2017 — edited Feb 23 2017

I'm accessing a third-party web service via UTL_HTTP. The web service is being upgraded and it looks like the Content-Type header is now being delivered on two lines instead of one. The second line is indented with a tab. This is legal per the spec, I believe. For example:

OLD HEADER (all one line, it may wrap):

Content-Type: multipart/related; type="application/xop+xml"; start="<soap.xml@xfire.codehaus.org>"; start-info="text/xml";    boundary="----=_Part_32873_1464598326.1487367565589"

NEW HEADER:

Content-Type: multipart/related; type="application/xop+xml"; start="<soap.xml@xfire.codehaus.org>"; start-info="text/xml";

   boundary="----=_Part_74_1245215465.1487367526203"

My PL/SQL program steps through the headers with utl_http.get_header. The first call to get_header() returns a header name of "Content-Type" and a header value of "multipart/related...". The second call returns a header name of null, and a header value of "boundary=...".

This doesn't seem right to me. An HTTP header with no name isn't allowed. The second line of the header is just a continuation of the content from the first line. Is this a bug?

Edit: Using 11.2.0.4.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 23 2017
Added on Feb 17 2017
4 comments
621 views