Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Pass a cURL command in APEX ?

YounOct 18 2017 — edited Oct 20 2017

Hello community,

I have an Apex Oracle application and I'm trying to integrate a third party module. I need to perform some cURL requests provided by the supplied.

For rest requests, I usually invoke the web server using the method :

    apex_web_service.make_rest_request(p_url => URL, p_http_method => Method);

But I don't know how to do that for cURL ? Does it have to be translated to HTTP request ? Is there any specific way to perform cURL requests in Apex oracle ?

Thanks in advance.

Here is the request code :

    curl -X POST https://xxx/v1/ \
    -H "Authorization: Bearer azeoiuqsd" \  
    -d "redirectUrl=https://webshop.example.org/order/12345/" \
    -d "webhookUrl=https://webshop.example.org/payments/webhook/" # optional

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 17 2017
Added on Oct 18 2017
2 comments
1,891 views