Support html redirect on curl