Forum Discussion

Spidey_29396's avatar
Spidey_29396
Icon for Nimbostratus rankNimbostratus
Jun 15, 2012

Changing the http response

Hi All,

 

 

 

We want to see change the header of the URL listed below to claritywsnet:5280

 

 

 

http://zoneclartqa02:5280/ClarityManagement-war/ManagementAPIService

 

http://zoneclartqa02:5280/ClarityNumberManagement-war/NumberManagementAPIService

 

http://zoneclartqa02:5280/ClarityAreaManagement-war/AreaManagementAPIService

 

http://zoneclartqa02:5280/ClarityServiceManagement-war/ServiceManagementAPIService

 

http://zoneclartqa02:5280/ClarityCustomerManagement-war/CustomerManagementAPIService

 

http://clarttrn02:5280/ClarityManagement-war/ManagementAPIService

 

http://clarttrn02:5280/ClarityNumberManagement-war/NumberManagementAPIService

 

http://clarttrn02:5280/ClarityAreaManagement-war/AreaManagementAPIService

 

http://clarttrn02:5280/ClarityServiceManagement-war/ServiceManagementAPIService

 

http://clarttrn02:5280/ClarityCustomerManagement-war/CustomerManagementAPIService

 

 

 

 

 

for example from http://zoneclartqa02:5280/ClarityManagement-war/ManagementAPIService the response should be http://claritywsnet:5280/ClarityManagement-war/ManagementAPIService

 

 

 

how can we do this with irule?They are showing us the output of our jar creation,but still the response is same.Here's our current irule:

 

 

 

when HTTP_REQUEST {

 

Do the update, replacing zoneclartqa02:5280 with clarityws.net:5280

 

HTTP::header replace Location [string map -nocase {zoneclartqa02:5280 clarityws.pldt.pldtgroup.net:5280} [HTTP::header value Location]]

 

Do the update, replacing clarttrn02:5280 with claritywsh.net:5280

 

HTTP::header replace Location [string map -nocase {clarttrn02:5280 clarityws.pldt.pldtgroup.net:5280} [HTTP::header value Location]]

 

}

 

when HTTP_RESPONSE {

 

Do the update, replacing zoneclartqa02:5280 with clarityws.net:5280

 

HTTP::header replace Location [string map -nocase {zoneclartqa02:5280 clarityws.net:5280} [HTTP::header value Location]]

 

Do the update, replacing clarttrn02:5280 with clarityws.net:5280

 

HTTP::header replace Location [string map -nocase {clarttrn02:5280 clarityws.net:5280} [HTTP::header value Location]]

 

}

 

No RepliesBe the first to reply