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

Issue with HTTP_POST function.

Former Member
0 Likes
661

Hi, could anybody help me?.

I have created an sms message type for an outbound delivery. I have a variable - declared as string type with 1024 lenght. This variable stores the content of the sms to be sent. It's filled in several lines.

The problem appears when this variable is passed to the function http_post, as long as the function requires a char type on it. Therefore, it brings a short dump.

If you declare the variable as char type with lenght 1024, when you debug it, ONLY 255 characters are displayed.

Does anybody have a clue about how to mend it?.

Thanks in advance.

Raúl.

4 REPLIES 4
Read only

athavanraja
Active Contributor
0 Likes
602

Do you pass this value to "REQUEST_ENTITY_BODY"?

there is a better approach availalbe. Instead of using HTTP_POST function module, try using class CL_HTTP_CLIENT. If you need help in coding with CL_HTTP_CLIENT do let us know.

Regards

Raja

Read only

0 Likes
602

Hi, RAja!.

Thanks for the reply!. The 'beloved' variable is being passed to ABSOLUTE_URL field - which is declared as told you earlier.

Going to try and pass it to the REQUEST_ENTITY_BODY - am not sure what'll happen....jeje.

Concerning to the class you told me about, have no deep idea either about how should I code. Could you please give me a clue?.

Thanks in advance!!!

Regards

Raú

Read only

0 Likes
602

raul just open that class and click where used list

i am sure you will find one example

regards

Read only

0 Likes
602

check out the sample program

RSHTTP01

If you need any help in understanding the code do let us know.

Regards

Raja

Since you are new to SDN have a look at the following link to learn about how to say thanks the SDN way

/people/mark.finnern/blog/2004/08/10/spread-the-love