in reply to curl request using LWP::UserAgent
There are so many things that do not match between the curl call and your LWP::UserAgent code that this is hard to diagnose.
I recommend you first make the two identical. Things to check are: