
105 N.W.2d 507 (1960)
Anthony Jay RODGERS, Appellant,
v.
John E. BENNETT, Warden Iowa State Penitentiary, Appellee.
No. 50064.
Supreme Court of Iowa.
October 18, 1960.
Rehearing Denied November 18, 1960.
Anthony Jay Rodgers, pro se, for appellant.
Norman A. Erbe, Atty. Gen., Marion R. Neely, Asst. Atty. Gen., for appellee.
HAYS, Justice.
On April 12, 1956 the Petitioner herein pleaded guilty to a County Attorney's Information charging him with Robbery with aggravation under Section 711.2, Code 1954, I.C.A. He was sentenced to a term of not to exceed twenty-five years in the State Penitentiary. No appeal was taken.
On March 5, 1960, Petitioner filed his petition for a writ of habeas corpus in the *508 Lee District Court, seeking his release from the above mentioned sentence. In his petition he alleges the conviction was illegal and that he had been denied due process of law. The basis for such contention is that, while his court appointed attorney had entered a plea of guilty for him, such attorney conspired with the sheriff, county attorney and a member of the State Bureau of Criminal Investigation to keep the true facts from the trial court. That the trial court was incompetent to give him a public trial thus denying him due process of law. Attached to the petition was a copy of the Information, clearly stating that he was charged with `Robbery by Aggravation'; a request by the defendant, petitioner here, that an Information be filed and that he be taken before the trial court for the purpose of pleading guilty; and a written plea of guilty to the crime as charged witnessed by his counsel. Also, the Court Record, which states that defendant was duly arraigned, advised of his rights and that he stated that he saw no reason why judgment should not be pronounced. The trial court denied his petition for a writ and he appeals. We agree with the trial court.
Section 663.6, Code 1958, I.C.A., states: "If, from the showing of the petitioner, the plaintiff would not be entitled to any relief, the court or judge must refuse to allow the writ." It was under this section that the trial court acted. We have held many times that Habeas Corpus does not supplant an appeal nor provide a forum for the determination of one's innocence or guilt. Mahar v. Lainson, 247 Iowa 297, 72 N.W.2d 516; Mann v. Lainson, 250 Iowa 529, 94 N.W.2d 759. It goes only to the jurisdiction of court to render the judgment in question and, if the writ is to issue, the petition must allege facts which if proved would make a prima facie showing of no jurisdiction. Here the petition with attached proceedings in the initial action shows in every respect that the rights of the defendant were protected at every stage of the hearing. The keeping of the facts from the trial court as alleged, even if true, would not affect the jurisdiction of the court but would be errors or irregularities to be corrected on appeal.
Furthermore, nowhere in the petition does the petitioner repudiate his written plea of guilty. His cry is that after the plea the court should have heard testimony going to the degree of the crime, i. e., Robbery or Robbery with aggravation. Even if the judgment pronounced should have been for Robbery, Section 711.3, Code 1954, I.C.A., such cannot afford relief to the petitioner until the expiration of the period for which he should have been sentenced. West v. Lainson, 235 Iowa 734, 736, 17 N.W.2d 411.
We find no error and the judgment of the trial court is affirmed.
Affirmed.
All Justices concur.
