Forum Discussion
EM
Feb 02, 2018Nimbostratus
HTTP Response from ILXPlugin
Hi DevCentral community! I am currently trying to develop an iRule ILXPlugin, which checks a client HTTP request for certain properties. If some condiditions don't match I would like to send an H...
Feb 02, 2018
Maybe you can use the example on page 49 of this document:
https://devcentral.f5.com/DesktopModules/Downloads/API/downloadservice/DownloadFile/242?version=340
flow.client.on("data", function(buffer) {
flow.client.end(
"HTTP/1.0 200 OK\r\n" +
"Server: BigIP\r\n" +
"Connection: Keep-Alive\r\n" +
"Content-Length: " + 4 + "\r\n\r\n" +
"abc\n");
});
Or you need to use flow.client.write(data);
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects