fixing curl writeback for external ip, message length reporting