curl err: Empty reply from server