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:
In reply to Re: curl request using LWP::UserAgent
by Corion
in thread curl request using LWP::UserAgent
by Jessarah FL
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |