changed app
Now curl handle correctly HTTP 302