Pawel_G_306732
Jan 18, 2017Altostratus
Redirect iRule for http TimeStamp service
Hi fellows, I have spent couple of days struggling to redirect Time-Stamp service to different port. Basically it's a normal http connection based service.
I Wrote an iRule:
when HTTP_REQUEST
{
if {([HTTP::path] contains "tsa") and ([HTTP::host] contains "8080") }{
HTTP::redirect "http://10.132.24.96:8040[HTTP::uri]"
}
}
It works in a browser but not as a TimeStamp service...
Funny thing is that when I'm accesing it with addres http://10.132.24.96:8040[HTTP::uri] it works fine, but not when I use http://10.132.24.96:8080[HTTP::uri] - the redirected one is not working and I've no idea why...
I Hope I can count on Your advise on this topic. Up-front thanks to anyone who can help.
Ok, so I've changed redirect to HTTP::respond 307 Location as redirect can't pass POST.
Everything works fine now :)
Thanks for advice on -L switch in curl @Jad.