cancel
Showing results for 
Search instead for 
Did you mean: 

Traffic Script Syntax error on BEA Weblogic Deployment Guide?

SOLVED
algray
New Contributor

Traffic Script Syntax error on BEA Weblogic Deployment Guide?

Hi,

I was working through the above deployment guide and found that the Stingray TM's highlight a syntax error when trying to create the Traffic Script rule for passing on client IP address to the weblogic servers.

The TrafficScript code in question is:

$client_ip = request.remoteIP();

http.setheader("WL-Proxy-Client-IP", $client_ip);

The Stingrays are reporting an issue with the first line... specifically "request.remoteIP()"

Can someone advise on this and tell me what the correct syntax would be?

Many thanks

Alex

1 ACCEPTED SOLUTION

Accepted Solutions
algray
New Contributor

Re: Traffic Script Syntax error on BEA Weblogic Deployment Guide?

I think i have found the appropriate code...

$client_ip = request.getRemoteIP();

Can someone confirm or correct me here?

View solution in original post

3 REPLIES 3
algray
New Contributor

Re: Traffic Script Syntax error on BEA Weblogic Deployment Guide?

I think i have found the appropriate code...

$client_ip = request.getRemoteIP();

Can someone confirm or correct me here?

sameh
Contributor

Re: Traffic Script Syntax error on BEA Weblogic Deployment Guide?

Yes, you are looking for request.getRemoteIP().

algray
New Contributor

Re: Traffic Script Syntax error on BEA Weblogic Deployment Guide?

Thank you Sameh!