Author Topic: Is rewrite supported?  (Read 2453 times)

Offline evildani

  • Administrator
  • Hero Member
  • *****
  • Posts: 373
  • Karma: 22
Is rewrite supported?
« on: May 30, 2008, 03:06:45 PM »
Hello,

I was reading the release notes for build 55.3 8.0 and it states:
1.12.3 Request Body Processing
The system has been enhanced to process expressions based on the body of
an HTTP request. This applies to the following features only: Integrated Caching,
Rewrite, and Load Balancing.
1.12.4 Response Body Processing
The system has been enhanced to support HTTP response body processing in
Rewrite.

So this means that body rewrite now is fully supported by citrix?

All this applies also to build 56.7 ver 8.1 also?


Daniel

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 152
  • Karma: 18
Re: Is rewrite supported?
« Reply #1 on: May 30, 2008, 06:58:12 PM »
Rewrite has been "supported" since it was released, however, that doesn't mean that it worked as well as it should.  As issues were reported and corner cases isolated, they have been fixed.  The newer the builds, the more reliable it should be.  More to the point is if it was recommended to use it, and it has matured to the point where it is usable in many situations.  Be careful of interactions with other features though, in particular less used features if you use body rewrite, but I think that it has gotten to be fairly reliable based on my experience (the http 1.0 downgrade thing helps enormously).

The Oracle

Offline jmelika

  • Administrator
  • Hero Member
  • *****
  • Posts: 339
  • Karma: 7
Re: Is rewrite supported?
« Reply #2 on: May 31, 2008, 09:04:21 PM »
Thanks for the info, Oracle.  What is the "http 1.0 downgrade thing" you're referring to?  Just curious

JM

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 152
  • Karma: 18
Re: Is rewrite supported?
« Reply #3 on: June 03, 2008, 12:11:15 PM »
# downgrades HTTP request to 1.0 to prevent chunking
# does NOT prevent HTTP keepalive from operating, due to keepalive headers
# can help avoid bugs that have cropped up as well when a server sends a malformed chunk
add rewrite action downgrade_1.0 replace http.req.version "\"HTTP/1.0\""
add rewrite policy to_1.0 true downgrade_1.0
bind rewrite global to_1.0 10 NEXT -type REQ_DEFAULT

The Oracle

Offline JMoreno

  • Sr. Member
  • **
  • Posts: 19
  • Karma: 0
Re: Is rewrite supported?
« Reply #4 on: July 29, 2008, 03:38:39 AM »

I've got trouble with CMP in dynamically generated documents,

i try this

Add rewrite action http_down_1.0 replace HTTP.REQ.VERSION.MINOR "\"0\""

and it avoids HTTP 1.1 chunkin

Rewrite saves my life¡¡



Offline TheOracle

  • Hero Member
  • *****
  • Posts: 152
  • Karma: 18
Re: Is rewrite supported?
« Reply #5 on: July 29, 2008, 08:32:14 AM »

I've got trouble with CMP in dynamically generated documents,

i try this

Add rewrite action http_down_1.0 replace HTTP.REQ.VERSION.MINOR "\"0\""

and it avoids HTTP 1.1 chunkin

Rewrite saves my life¡¡




Can you clarify the issue?  I am guessing that this relates to server chunked content where the server isn't generating a zero length chunk at the end, but is instead closing the connection.  With CMP turned on, this is resulting in an error, while without it, the page loads fine?  In such a case, disabling chunking with a 1.1->1.0 downgrade is perfectly reasonable, as:
1.  The connection is going to close anyway
2.  The server isn't sending enough data to verify at the HTTP level that the chunking is complete

The downgrade can also be done selectively for particular URL's if you wish.

The Oracle

Offline JMoreno

  • Sr. Member
  • **
  • Posts: 19
  • Karma: 0
Re: Is rewrite supported?
« Reply #6 on: July 30, 2008, 10:57:07 AM »
i think that, due misconfiguration of the server, it doesn't send a Zero lenght to finish chunking

downgrading the request to http 1.0 prevents chunking and doesn't affect perfomance

of course, i only rewrite in case of URL´s that request for dinamically generated documents.


P.D I think i have to practise my english anyway
my apologies for it¡¡

Offline JMoreno

  • Sr. Member
  • **
  • Posts: 19
  • Karma: 0
Re: Is rewrite supported?
« Reply #7 on: July 30, 2008, 11:07:49 AM »
...and of course, without CMP the page (pdf/rtf generated documents) loads fine