The petition for the writ of habeas corpus must be verified by the oath of the applicant or some other person in his behalf. It may be presented to the judge of the superior court of the circuit in which the illegal detention exists who may order the party restrained of his liberty to be brought before him from any county in his circuit, or it may be presented to the judge of the probate court of the county, except in cases of capital felonies or in which a person is held for extradition under warrant of the Governor.
OCGA § 9-14-4