Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem with Content-Length header element in HTTP Request

Former Member
0 Likes
1,384

Hi, we are generating http multipart request using class CL_HTTP_CLIENT, and multipart segments header are filled with Content-Type and Content-Length, by default. Both elements are not part od RFC 1867, and request is not working.

We find a way to avoid Content-Type in note 582889 - delete Content-Type of HTTP request header, but we can't find anything to avoid content-length.

Is there any way to do that?

Regards.

2 REPLIES 2
Read only

Former Member
0 Likes
1,020

Anybody?

Read only

Sandra_Rossi
Active Contributor
0 Likes
863
DATA(one_part) = request->add_multipart( suppress_content_length = abap_true ).