Are you sure you want to use PUT instead of POST? You are sending something "www-form-urlencoded", which indicates to me you actually want to use POST. These methods might have different permissions?
Also, you might have run into one of the many digest auth bugs in LWP.
In reply to Re: LWP digest authentication fails with PUT method
by cavac
in thread LWP digest authentication fails with PUT method
by bilal_j
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |