Hpricot Workaround for ASPX viewstate
I’ve switched over to Hpricot for HTML parsing in my various ruby projects. This was a long time coming and the performance is impressive. I happened to catch a page with ASPX viewstate on it and was faced with the following error:
ran out of buffer space on element
There are various pages out there which detail the work around and the rumor is that the memory cap is to ensure that the script doesn’t end up consuming everything on the machine. The work around is as follows:
Hpricot.buffer_size = 262144
Post a Comment
You must be logged in to post a comment.