Forum Discussion

Aantat's avatar
Aantat
Icon for Cirrus rankCirrus
Jan 16, 2023

Send a POST API Request via iRule

Hello team.

Help me please with sending a POST api request via iRule. What I want is somethink like this:

 

 

 

when ASM_REQUEST_VIOLATION {
    *I don't know what command should be here* "POST /sample/post/json%0A HTTP/1.0\n
Host: test.com\n {Client_address: IP::client_addr}"
 }

 

 

or just:

 

when ASM_REQUEST_VIOLATION {
    *send via API to another host* "Client_address= IP::client_addr"
 }

 

So the main goal is send Client Address from Violation event to another host via API. Is it possible to do something like that?