An alleged rapist has repeatedly yelled out in the courtroom about corrupt police as he successfully made a bid for bail ahead of his retrial.