Hmmm...on a whim I uncommented the line in http.pm you mentioned and now I can see the headers sent by the client. I don't see anything else, however. It works both with and without the $ENV variable setting. So that line doesn't seem to have an affect for me.