MOD:only create file after pass the http head check