API:Allredirects/Sample code 1