Forum Discussion

pinkzeppelin_26's avatar
pinkzeppelin_26
Icon for Nimbostratus rankNimbostratus
Jun 06, 2017

Inserting timestamp to HTTP header

Hello,

 

I would like to insert HTTP header value that reflects the current time of the requested connection and send it to backend servers.

 

I need help for inserting timestamp and the time format (GMT +2).

 

I've used iRules like this: when HTTP_REQUEST { set http_request_time [clock format [clock seconds] -gmt 2 ] }

 

Is that correct? Thanks.