rewrite http option head
remove some http repeat codes
fix get cookie bug