Replaced lwp-request with curl in HTTP methods