Once you start getting the 500, can you access the page via a real browser?
In reply to Re: help with LWP by ysth in thread help with LWP by fullmotiondesigns