Absent Member.. JasonCantrell Absent Member..
Absent Member..
114 views

[OO Tip] "HTTP PUT" operation fails due to missing Content-Length header

Issue:

 

When using the "library/operations/HTTP Client/HTTP CLIENT PUT" operation, an “application/json” formatted string body to the Hyper Text Transfer Protocol (HTTP) request is sent. The HTTP Application Programming Interface (API) server expects for the Content-Length header to be set correctly; however, it is not set automatically by the client. When the Content-Length header is set to the byte-length of the 8 BIT encoded body it gives an error that the Content-Length header is already present.  If the Content_Length is not sent, it returns back saying it is required.

Here is the error:

INFO   | jvm 2    | 2013/10/15 20:03:46 | 5289771070 [runpool-1-thread-349] ERROR com.iconclude.dharma.model.operations.WebOperation  - RAS-side exception occurred while executing IAction 'com/iconclude/content/actions/httpclient/HttpClientPut.class':'org.apache.http.client.ClientProtocolException: Content-Length header already present

 

Solution:

There are two new enhancement requests for this issue that are currently in progress.

Version 9.00 : QCCR8C23183 - The HTTP PUT operation fails due to missing Content-Length header
Version 10.00 :  QCCR8C23184 - The HTTP PUT operation fails due to missing Content-Length header

Please contact OO Support for assistance with this issue if needed.

 

Direct link to the document here:

http://support.openview.hp.com/selfsolve/document/KM00789576

HP Support
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
Labels (2)
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.