How to send request to running FraudDetection sample application using curl on Linux

How to send request to running FraudDetection sample application using curl on Linux

book

Article ID: KB0073224

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition 5.x, 6,x

Description

How to send request to running FraudDetection application using curl on Linux

Environment

All Supported Environments

Resolution

As the event defined in the destination of the sample project is a generic parent event we need to pass proper event namespace and name through the request. Also, all the event properties are by default considered part of header properties and not params.

e.g:-Please use following curl call to trigger the createAccount event for sample CreditCard Application shipped with BE installation:

curl -i -H "_ns_:www.tibco.com/be/ontology/Events/CreateAccount" -H "_nm_:CreateAccount" -H "AccountId:Bob3" -H "Balance:200000" -H "AvgMonthlyBalance:11000" -X POST http://localhost:8109/Channels/HTTP/AllOps

Issue/Introduction

Summarizes How to send request to running application using curl on Linux