Forum Discussion
Sukhwinder1011
Oct 17, 2020Nimbostratus
Any tool to match and update date/time value inside uri request before passing it to backend pool ??
Hi Everyone, So the thing is, we are getting a uri request hit from customer on f5 with some time and date format within the uri itself. Now we have this request to update the time 5 min before...
- Oct 17, 2020
Hi
A quick solution that should do the trick You'll just have to wrap around this code to replace the URI sent to the backend...
set origTime "START_TIME:01:00HRS:17thOCT" log local0. "Original VALUE : $origTime" regexp {(START_TIME:)(\d\d:\d\d)(.*)} $origTime -> start middle end set origTimeSec [clock scan $resultVar] set newTimeSec [ expr { $s + 300 } ] set newTimeString [clock format $newdate -format {%H:%M}] log local0. "New VALUE : $start$newTimeString$end"
Yoann
Yoann_Le_Corvi1
Cumulonimbus
Hi
A quick solution that should do the trick You'll just have to wrap around this code to replace the URI sent to the backend...
set origTime "START_TIME:01:00HRS:17thOCT"
log local0. "Original VALUE : $origTime"
regexp {(START_TIME:)(\d\d:\d\d)(.*)} $origTime -> start middle end
set origTimeSec [clock scan $resultVar]
set newTimeSec [ expr { $s + 300 } ]
set newTimeString [clock format $newdate -format {%H:%M}]
log local0. "New VALUE : $start$newTimeString$end"
Yoann
Sukhwinder1011
Oct 18, 2020Nimbostratus
Thanks Yoann, I'll give it a try..
- Yoann_Le_Corvi1Oct 19, 2020Cumulonimbus
Hi,
If OK. Mark it as answered please :-)
Thanks
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