Workaround for curl can't follow redirect (?)