Okla. Stat. tit. 22, § 1235
If the grounds on which the warrant was issued be controverted, the magistrate must proceed to take testimony in relation thereto.
R.L. 1910, § 6073.