in reply to Re^2: Investigating connection reset with LWP to an https site
in thread Investigating connection reset with LWP to an https site

RESET can happen for lots of different reasons. They could even be suddenly breaking the connection after they see your user agent string.

I'd get more information by capturing packets with wireshark to compare the different scenarios.

- tye        

  • Comment on Re^3: Investigating connection reset with LWP to an https site (packets)

Replies are listed 'Best First'.
Re^4: Investigating connection reset with LWP to an https site (packets)
by sedusedan (Pilgrim) on Mar 06, 2012 at 14:24 UTC

    Thanks for the advice. Since HTTPS is encrypted and the LWP's source is at hand, I just let LWP print out (uncomment one line, really) the HTTP header it's sending, and the culprit turns out to be the Transfer-Encoding (TE) header. I'll be bugging Gisle Aas again to give LWP the option of not sending TE header.