We are attempting to rewrite some URLs in our response for an outside proxy server. We noticed that the response is being broken up as it goes through the response filter. We then use regular expressions to locate the URLs and rewrite them. The issue we ran into is that the way that it is broken up (not exactly sure how it gets segmented), we had one URL that was being cut in half between the chunks, and so our regular expression didn't pick it up in either chunk and it was not rewritten.
Ex.
End of Chunk1
"...<body><a href="http://myserver.local/">
Start of Chunk2
"path/file.aspx">Some link</a>..."
So our regular expression doesn't pick up the link as a valid URL. We tried pooling our response into a StringBuilder to make sure we have the whole response before we attempt to rewrite the URLs, but that is resulting in the viewstate being corrupted. Any ideas?