Forum Discussion

Johann_Araujo's avatar
Johann_Araujo
Icon for Nimbostratus rankNimbostratus
Dec 17, 2013

Irule for HTTP webservice Fastconnect and header

hi guys.

 

I need help to create a Irule for HTTP.

 

I need to read the header from webservice Fastconnect, with the header.

 

the header id this:

 

1459196823

 

227$ORDER:NESuscripcionProducto

 

$ORIGEN:FCTCAP

 

$QMOVIL:145919682

 

$CACTUACION:PS

 

$SUBCACTUACION:343

 

$STATUSAA:A

 

$SUBSTATUSAA:1

 

$BMONTOAJUSTEBASE:0

 

$BMONTOAJUSTEEXP:-5

 

$BMONTORENTABASE:null

 

$BMONTORENTAEXP:null

 

$DIACICLO:14/12/2013T00:00:00

 

$:

 

 

I need to send to a determinated pool depending on the last number for this sentence 145919682<

 

If the number finishes in 0,2,4,6,8 send to pool Pool_XXX and if the number finishes in 1,3,5,7,9 send to another pool Poll_YYY

 

Is this posible?

 

thaks for your help.

 

2 Replies

  • A little confusing. What is the name of the header? What could its value be? And does it occur in every request?

     

  • Hi Kevin.

    This is the request sent from the client to the F5.

    this occurs in every request with diferent number :

    I need read the header with the number.

    1459196823

    227$ORDER:NESuscripcionProducto

    $ORIGEN:FCTCAP

    $QMOVIL:145919682

    $CACTUACION:PS

    $SUBCACTUACION:343

    $STATUSAA:A

    $SUBSTATUSAA:1

    $BMONTOAJUSTEBASE:0

    $BMONTOAJUSTEEXP:-5

    $BMONTORENTABASE:null

    $BMONTORENTAEXP:null

    $DIACICLO:14/12/2013T00:00:00

    $:

    in the header is the parameter this number change in every request

    145919682

    Thank you.