Skip to Content
avatar image
-2
Former Member

How to execute curl command in abap ?

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jan 22 at 07:23 AM

    Hi

    The WAS has an integrated HTTP server and client - you can use this to do the HTTP POST

    Creating the HTTP Client

    regards

    Domi

    Add comment
    10|10000 characters needed characters exceeded

    • 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.