What is Correlation? Correlation is the capturing of dynamic values passed from the client to the server and used to send the response based on these dynamic values. Why Correlation is needed? Sometimes you need to send response based on request data. HPD supports this feature. You can send response based on request data. $HPD_ROOT/correlation/[<project dir>]/<host name>/services/<service name>/ ◦ project dir: This is optional. ◦ host name: host name is optional in service definition. In this case, its value will be ‘default’. Currently this is set to “default” directory. ◦ services: This directory to hold all services directory. ◦ service name: This is name of correlation service. There can be multiple services with different names. ◦ Each correlation service will have following files: service.conf - Service configuration file that contains information for different response templates, parameters, advance settings etc. service.c - This is optional that contains C code for call back methods. service.history service.comments – It contains information for service which can be edited/viewed from GUI. data file – used in file and index file parameter <Response file> - <service name>_<template name><content type of response file> <Request file> - <Response file>.req This file is to specify all global properties for all correlation services. Default global properties are – ◦ CORRELATION_DIR <User Dir> - User can set own dir using this keyword under $HPD_ROOT/correlation for services. Default is no dir so all services are under $HPD_ROOT/correlation/<host name>/. If you are using CORRELATION_DIR, then all global settings are taken from $HPD_ROOT/correlation/< User Dir >/correlation.conf file, not from $HPD_ROOT/correlation/correlation.conf file. ◦ SET_CR_URL_HEADER Connection: Keep-Alive - It is important to set this Connection: Keep-Alive as wget wait for connection to be closed from HPD in absence of this header. Wget is used in Test Service. There are two ways to create correlation services: Capturing Manual
© Copyright 2026 Paperzz