01-22-2018 12:22 AM
Dear.
As we need to implement 3rd party http API, their specification is fit with curl command.
curl -X POST --data "action=send" --data "data=<PAYLOAD>" http://www.mgage.solutions/servxml/XML_parse_API.php
Is there any way to call curl command in abap ?
and any other things to install in application server like HTTP_APP ?
Would you guide me how to call curl command from A to Z in detail ?
Best Regards,
SJ.
01-22-2018 7:23 AM
Hi
The WAS has an integrated HTTP server and client - you can use this to do the HTTP POST
regards
Domi
01-22-2018 8:35 AM
Dear. Domi.
Yes, http connection was first thing we try. But there's limitation to call solution API.
API does not support POST method putting value in header side.
That's why 3rd party API suggests to use curl and we struggles to find how to call it on ABAP.
Regards,
SJ.
01-22-2018 8:39 AM
01-22-2018 9:33 AM
Hi.
both body or header, it's not working.
Their API are not ready to get data in header and body.
It's just query string method, but it occurs 414 error when having long parameter value.
So need to implement it with curl.
Regards,
SJ.
01-22-2018 9:40 AM
Hi
If you get an 414 from the server, how shoult this work with curl? If the "payload" is too large it won't work in curl either!?
regard
Domi
01-22-2018 12:46 PM
HTTP 414 is "Request URI too long", so it seems that you passed the payload both through the body and through the URI. Why??? Pass the payload either in the URI or in the body, not in both!
That's not really an ABAP question by the way.
01-22-2018 8:24 AM
Do you know that you can execute HTTP requests from ABAP? The answers are in the web.
01-22-2018 10:33 AM
HI, Rossi.
Would you post URL describing on how to execute HTTP request from ABAP ?
Regards,
SJ
01-22-2018 12:41 PM