Forum Discussion

Martin_Kaiser_1's avatar
Martin_Kaiser_1
Icon for Nimbostratus rankNimbostratus
Oct 20, 2005

using getfield to split up URIs

Hi there,

 

 

can anyone of you show me the correct syntax for using the function getfield in an iRule?

 

What I want to do is split up an URI like "/webstart/portal/customer_id/some/more/fields" and extract the field customer_id, that is always in the third position. The value should be stored in a variable that can be used again later for dynamically choosing pools or redirects in case of LB_FAILED.

 

 

Thanks in advance!

 

Regards,

 

Martin