Forum Discussion
seungho_33263
Mar 14, 2012Nimbostratus
Delayed response occured when I changed HTTP response data.
I want to replace http link to https link in html body content.
When I tested below code in the test environment, it worked correctly.(only IE test)
but it didn't work customer's envi...
seungho_33263
Mar 15, 2012Nimbostratus
Thanks for your advice.
I figured out the reason why the response delayed. It was this code, "HTTP::collect 33000."
HTTP_RESPONSE_DATA event called when received data reached 33000 bytes or TIME_OUT.
I reduced the collect size to 30000. so, the delayed problem was temporally solved.
But it still works in only IE browser.
In Chrome, Firefox, Opera browser environment, it doesn't work.
According to my test,
when there is no change in the response data Chrome works,
when there is change in the response data Chrome doesn't work.
Do you know the reason?
--CUR SOURCE--------------------------------------------------------------------------------------------------------------------
when HTTP_RESPONSE {
HTTP::collect 30000
}
when HTTP_RESPONSE_DATA {
set object [HTTP::payload]
set _org "http://ab.cde.ac.kr/webapps/login/"
set _new "https://ab.cde.ac.kr/webapps/login/"
set offset [string first $_org $object 0]
if { $offset > 0 } {
set len [string length $_org]
set last [expr {$offset + $len}]
set newobject [string replace $object $offset $last $_new]
HTTP::payload replace 0 [HTTP::payload length] $newobject
}
HTTP::release
}
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects