I dunno how to use gdb (I'm not a programmer), but attached are strace's from both wget and curl, running with 2.3.1-7. > I can't reproduce it - Can you try to debug it a bit?
Attachment:
curl.log
Description: Binary data
Attachment:
wget.log
Description: Binary data