Emulate curl with wget