fixed for #7857(wget -qO - --post-file fails)