Controlling HTTP requests and responses with the Content-Length header
Last Updated May 13, 2017
In SGOS 6.3 and earlier, the CPL conditions request.header.content-length.regex= and response.header.content-length.regex= are used to control HTTP requests and responses based on the size of the body text as reported in the Content-Length header. This requires that the Content-Length header is provided by the user-agent generating the request or the server generating the response header (it is optional) and that it is accurate.
SGOS 6.4 introduces the following new controls to test the actual size of http request body content without the need to rely on specific HTTP headers:
More information on these preferred properties and conditions can be found in the SGOS 6.4 Command Line Interface Reference reference guide.
If you need to control traffic based on the HTTP Content-Length header, SGOS 6.4 also introduces