in reply to LWP error 500 read timeout "internal response"

You can trace LWP activities to get more details on where it gets stuck, to do so just insert another use line:
use LWP::Debug qw(+);
I cannot copy the problem it runs fine on my Linux system, it appears to be an environment or system security (SELinux?) related issue.