Jump to content
Welcome to our new Citrix community!

A strange problem in the response policy that I can't solve, and I thought maybe someone could help me.


Or Shellyy

Recommended Posts

I am having a problem with a response policy that should check if two values are equal. If they are equal, I should get "true". If they are not equal, I should get "false".

However, I always get true, even if the values are equal and even if they are not equal.

For example, I am using the following expression:

HTTP.REQ.URL.PATH.EQ("/validTestOTP") && HTTP.REQ.BODY(500).AFTER_STR("PEM1=").BEFORE_STR("&").EQ(HTTP.REQ.BODY(500).AFTER_STR("PEM2=").BEFORE_STR("%%"))

When the body contains the following values:

GET /validTestOTPHTTP/1.1

Host: www.foobar.com

User-Agent: Mozilla Firefox/3.0.3

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

Accept-Language: en-us,en;q=0.5

Accept-Encoding: gzip,deflate

Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7

Keep-Alive: 300

Connection: keep-alive

Date: Thu, 09 Oct 2008 18:25:00 GMT

Cookie: sessionid=100xyz

PEM1=1&PEM2=2%%

I still get true, even though the values are not equal.

Link to comment
Share on other sites

  • 2 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...