actually i have not much practice with the LWP project, but from my distant point of view you might receive the cookie when you omit the line
. according to the pod from
ined. so from my understanding explicitly setting it to an empty hash reference overrides the default behaviour and will result in an attempt to send an empty cookie together with the request - which is, however, not conforming to http standards.