Added -L path for curl so it follows redirects