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

Function module HTTP_POST import parameter BLANKSTOCRLF

Former Member
0 Likes
614

Can anyone explain what this parameter BLANKSTOCRLF does on function module HTTP_POST.

I am trying to make a HTTP call from ECC5 using class cl_http_client but I am getting an error.

I make the call with HTTP_POST and it works okay when I set the BLANKSTOCRLF to 'X'.

When I don't set this parameter it fails in the same manner as my call using class CL_HTTP_CLIENT.

Can anyone explain what it does and can it be replicated in CL_HTTP_CLIENT ?

Thank you.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
456

It turned out to be an incorrect content type on the HTTP call, nothing to do with BLANDSOCRLF.

2 REPLIES 2
Read only

Former Member
0 Likes
456

I am answering without having real experience with this FM.

BLANKSTOCRLF means convert blanks or spaces to newlines (carriage return + line feed ).

http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol#Request_message

Above wikipedia link mentions that request line and headers must end with <CR><LF>.

EDIT: If you could post working example of HTTP_POST and non-working example of class, I can play around with it.

Read only

Former Member
0 Likes
457

It turned out to be an incorrect content type on the HTTP call, nothing to do with BLANDSOCRLF.