Php Curl Check Http Response In Django How To Redirect