This is a rush transcript from "The O'Reilly Factor," May 8, 2008. This copy may not be in its final form and may be updated.

Watch "The O'Reilly Factor" weeknights at 8 p.m. and 11 p.m. ET and listen to the "Radio Factor!"

BILL O'REILLY, HOST: We have an extensive interview with Senator John McCain. I spoke with him a few hours ago, and tonight we'll concentrate on how he thinks he can beat Barack Obama, and what he's going to do about gas prices, sanctuary cities and other vexing problems.

As you may know, Mr. McCain is 71 years old, has been in the Senate for more than 21 years, and pulled off a stunning upset to get the Republican nomination. Last summer, most pundits thought he was dead in the water, but Senator McCain saw it differently. Now, he's up against a young, charismatic politician who himself has pulled off a stunning upset.

(BEGIN VIDEOTAPE)

O'REILLY: You're going to be running against Barack Obama it looks like. What's his main weakness?

SEN. JOHN MCCAIN, GOP PRESIDENTIAL CANDIDATE: Inexperience. I think inexperience and lack of judgment, and a record that shows that, whether it be showing a desire to sit down with the president of Iran, who has articulated his country's commitment to the extinction of the state of Israel, to wanting to raise people's taxes.

There's 100 million people that are dependent on capital gains. He wants to raise their taxes — people who save their hard-earned money every month and put it into some kind of investment. So I think it's inexperience in judgment and vision.

O'REILLY: He says that we have to talk to Iran and our enemies, we have to engage them to bring down the tension, and that you, you know, you're part of the Bush machine and that you're just going to keep the same conflicts rolling ad infinitum.

MCCAIN: If you're going to sit down with someone like Ahmadinejad, who articulates — comes here to New York City and says they're going to "wipe Israel off of the map," then you enhance their prestige.

Now if the president of Iran wants to sit down and talk seriously and says that they're not going — that they will abandon that horrible commitment, then maybe there is some room for discussion, but all you do is enhance their prestige.

The same thing if you want to talk to Mr. Chavez. The same thing if you want to talk to Raul Castro, who was the henchman in Cuba and still is for many, many years.

Look, there's ways of communicating, and there's ways of enhancing the prestige of your adversaries. And what Senator Obama wants to do would obviously do that in my view.

O'REILLY: Senator Obama got real hurt on a judgment call with Reverend Wright and this guy William Ayers, this Weather Underground guy. Are you going to bring that up?

MCCAIN: On the case of Reverend Wright, that is between Senator Obama and the American people. He has said that it is a legitimate political issue. I condemn Reverend Wright's remarks. I think almost everybody that I know does, because those kind of remarks are very hurtful to our efforts to unite America.

This campaign is not going to be about, in all due respect, about Reverend Wright or Mr. Ayers. It's going to be about vision. It's going to be about a plan of action for the American people who are hurting right now.

As we speak, American families are sitting around the kitchen table: How are we going to keep our home? We recently and suddenly lost a job. That's the case of over 250,000 Americans. And we've got to fix this economy, and it's hurting. And I've got a plan of action to do it. That's what this campaign really is going to be all about.

O'REILLY: But he's going to have his plan; you're going to have your plan. OK.

MCCAIN: Well, I think...

O'REILLY: So...

MCCAIN: But they're going to be starkly different. Do you want the government to take over health care and have a major role in health care in America? Or do you want families to make choices? Do want to raise taxes or do you want to lower taxes? I don't believe you — I think the worst time to raise taxes is in an economic downturn, and I won't do that. And he wants to do that.

O'REILLY: To the rich guys like me.

MCCAIN: So there are these stark differences. Well...

O'REILLY: And he says...

MCCAIN: ...we call 100 million people rich.

O'REILLY: On the cap gains, yes.

MCCAIN: If you call people who now are paying into Social Security, raising that cap, and now encompassing millions and millions of more Americans, working men and women, I don't think that's the rich in America. And I don't think that those people think they are either.

O'REILLY: OK. John Hagee is a guy...

MCCAIN: Yes.

O'REILLY: ...that you sought his endorsement in San Antonio, Texas. He said bad things about Catholics and gays and other things like that. And your opponents are saying, hey, you know, McCain hangs around with Hagee; Obama hangs around Wright. No difference.

MCCAIN: I do not embrace a view that he stated about the Catholic Church. I steadfastly reject it and repudiate it. I've never been in Pastor Hagee's church. I know him, but the fact is that I accept his endorsement.

O'REILLY: Yes, but you...

MCCAIN: Because he supported...

O'REILLY: You had breakfast with him, you know?

MCCAIN: Well, I had breakfast with him, and I met with him. I don't embrace all of his views. He endorsed me.

O'REILLY: OK. You're ready for the viciousness of this campaign? We understand The New York Times has, you know, a squad of reporters looking to dig up any dirt they can on you. You know that, right?

MCCAIN: Sure.

O'REILLY: You know, they're asking — they're going to dig up any kind of deal they can and throw it just like they threw that other story on the front page.

MCCAIN: Mm-hmm.

O'REILLY: It must have been hurtful for your wife.

MCCAIN: It's always hurtful when you see a story that is negative or...

O'REILLY: Yes, but this is more than that. The implication was that you're a, No. 1, corrupt guy, and No. 2, kind of looking at other women. That was the implication by The New York Times.

MCCAIN: Well, we discussed it already after it came out, and I don't discuss it anymore.

O'REILLY: But they're going to do it again.

MCCAIN: There are negative stories that they have written since then, and I understand that. Look, I'm a big boy. I understand that this is going to be a tough campaign. And I...

O'REILLY: So you're ready?

MCCAIN: Oh, sure. Listen, Bill, in all due respect, I've had tougher times than a political campaign, my friend. And I know how to stand up to it. Sometimes I worry about my family, obviously, because these are — and that was one of the factors...

O'REILLY: You bet.

MCCAIN: ...that was considered when we decided to run again.

O'REILLY: They're going to smear and slime you like crazy. You know that.

MCCAIN: But I have the utmost faith and reliance on the American people and their good judgment. And...

O'REILLY: And Obama's going to get it, too.

MCCAIN: Well, look, I want to have a respectful campaign. That's what Americans really want.

O'REILLY: You can't control these other guys because of the McCain-Feingold bill, you know? Ahh! You see, be careful what you wish for.

MCCAIN: The McCain-Feingold bill, except for increase in individual contribution limit did not affect...

O'REILLY: But George Soros is the big beneficiary. He set up this $350 million apparatus to attack you, because now he can do that. You know that.

MCCAIN: It was already set up before. 527s, they're a violation under 74 law, but before we get down into that minutiae, it's going to be a tough campaign. 527s are there. We're not going to unilaterally disarm, but I will have a — run a campaign that I can look back on and say, as I did in 2000 and I have every other race that I've ever been in, that that was an honorable campaign. That's what I'm going to do.

O'REILLY: OK. Arianna Huffington says you didn't vote for Bush in 2000. She's one of these people who is going to come after you.

MCCAIN: Yes.

O'REILLY: On her Web site yesterday, somebody blogged that you collaborated with the North Vietnamese, and they didn't torture you. This is Arianna Huffington. Now Arianna Huffington flat out said you did not vote for President Bush in 2000.

MCCAIN: What can you say?

O'REILLY: Did you vote for President Bush?

MCCAIN: Of course not (sic). I campaigned all over this country for him.

O'REILLY: So you voted for President Bush?

MCCAIN: Of course. I mean, that's a ridiculous question.

O'REILLY: So she lied?

MCCAIN: Well, I don't — frankly, I do not read Huffington Post. I spare myself from having that experience.

O'REILLY: You voted for Bush in 2000?

MCCAIN: I voted for Bush in 2000 and 2004.

O'REILLY: OK.

MCCAIN: And not only that, far more important than a vote, I campaigned everywhere in America for him. I enjoyed it. I campaigned with him. I did everything I could to get him elected and re-elected president.

(END VIDEOTAPE)

O'REILLY: All right. When we come back with Senator McCain, we'll talk about illegal immigration, a very hot one for him and an issue that's caused him a lot of trouble. Also, his controversial votes on energy and how he's going to control the oil companies.

(COMMERCIAL BREAK)

O'REILLY: Continuing now with Senator John McCain. I spoke with him a few hours ago.

(BEGIN VIDEOTAPE)

O'REILLY: Gas prices are the big deal.

MCCAIN: Yes.

O'REILLY: You say suspend Memorial Day to Labor Day the federal gas tax. I say sounds good on paper, but the oil companies will run in and whatever you suspend, 43 cents, 45 cents, they'll raise it 45 cents because nobody is watching the American oil companies. They're going to do what they want. They're exploiting the War on Terror. They're exploiting the world's uncertainty. They're gouging the consumer. I believe this. We've investigated this. So your solution is going to enrich the oil companies.

MCCAIN: Bill, I'm sure that we would keep an eye on the oil companies.

O'REILLY: They're not now. Bush isn't now.

MCCAIN: No, they are brazen in some respects, I will certain — there's been speculation. There's been all kinds of things that have happened as the price of oil has gone up, but two things: One is that we would obviously keep a very close eye on that. But second of all, it's just a little temporary relief...

O'REILLY: No, I get it, but you're going to have to control...

MCCAIN: ...for low-income Americans. Who drives the furthest, and who drives the oldest cars? The lowest income people in America.

O'REILLY: Listen...

MCCAIN: And so, let's give them a little...

O'REILLY: ...in theory, I'm fine with it. But in Illinois...

MCCAIN: Do you think we could not keep...

O'REILLY: The oil companies came right in, bang, and they took the money.

MCCAIN: But don't you think that we could keep an eye on the oil companies…

O'REILLY: They're not now.

MCCAIN: …in this respect?

O'REILLY: The Bush administration's not keeping an eye on them now.

MCCAIN: Well, I'm talking about if we had a holiday. If we had the holiday, everyone of us, including you, who would be checking the price everyday…

O'REILLY: I'm all over it, but I don't have the power.

MCCAIN: ...of a gallon of gas everyday. The power of public opinion, but let's just give people a little relief.

O'REILLY: Let's be honest. Both parties sold out the American people on energy. Both the Republicans and the Democrats. You've been in the Senate 21 years. Come on. There's no alternative energy system, and there's nothing under development until maybe a year ago. Clinton-Gore didn't do anything. They didn't do anything on global warming. They didn't do bupkis. So the American people have a right to be angry, you know. Why has it gone up? Why has a gallon of gas gone up a $1 in the last four weeks? Do you know?

MCCAIN: I think it's because of one fundamental problem, and that is that you have a cartel that controls all of the — virtually all of the world's oil supply.

O'REILLY: OPEC.

MCCAIN: And they obviously can set the price of oil just to the highest level that will, one, sustain it, and second of all, the United States of America must become independent, first of Middle Eastern oil, and then...

O'REILLY: It's going to take a while because we didn't do anything for the last three decades.

MCCAIN: I agree that we have not done enough. And I agree that we have to act. And I agree that it has to be our nation's No. 1 priority. We're sending over $400 billion a year...

O'REILLY: Absolutely.

MCCAIN: ...to countries that don't like us very much and to terrorist organizations.

O'REILLY: You voted against ANWR drilling. You voted against ANWR.

MCCAIN: Yes, and I'll vote against drilling if they want to drill in the Grand Canyon, and I'll vote against it if they want to drill in the Everglades. And I will try to make it more attractive for Florida and California and other states to have drilling off of their coasts, but I'm not going to force them to because...

O'REILLY: But no one lives in ANWR.

MCCAIN: No, it's pristine beauty.

O'REILLY: So what? Who sees it?

MCCAIN: Well, all I do is believe that we have to preserve some of the great natural treasures of this earth...

O'REILLY: In the Arctic Circle?

MCCAIN: ...no matter where they are, my friend. And I...

O'REILLY: You know, a lot of people aren't going to like that.

MCCAIN: I know a lot of people don't like it, but I am also an environmentalist. And so was Teddy Roosevelt, my hero. And I believe that there are just some things that you have to...

O'REILLY: Hillary Clinton cited Teddy Roosevelt, too.

MCCAIN: Well...

O'REILLY: He's popular.

MCCAIN: He happened to be a Republican as well.

O'REILLY: I know. All right, the issue that's hurt you the most among conservatives is the immigration issue. You know that? In fact, you and I had a nice chat in May of 2001. I don't know if you remember that.

MCCAIN: I tried to forget it.

O'REILLY: OK. I hammered you. I hammered you. I told you you've got to crack down on the border. Your own state is getting overrun. I was right. Will you concede that?

MCCAIN: I will concede that the American people want the border secured first.

O'REILLY: OK, but Arizona, your home state, has been punished by rampant illegal immigration, economically, socially. In Maricopa County now, they're cracking down, probably too much, but the people are furious.

Now my question is this. It's a simple question. I asked this to Hillary Clinton as well. Sanctuary cities — San Francisco, Los Angeles, and on and on. Phoenix, no longer. The mayor changed — are harboring criminal illegal aliens, you know? There was an 18-year-old high school football star, whose mother is serving in Iraq as a sergeant, murdered by a criminal illegal alien with a long rap sheet. Let out of the L.A. County jail. ICE was never informed. The next president, senator, has to crack down on the sanctuary cities. Will you?

MCCAIN: Obviously, I don't approve or would oppose sanctuary cities, but again, it's a larger problem. And that is our failure to carry out a federal responsibility to enact immigration reform. That means securing our borders first, a temporary-worker program, which we need. It is associated with tamperproof biometric documents. Anyone who doesn't have that is prosecuted.

O'REILLY: Can't work.

MCCAIN: It works.

O'REILLY: OK.

MCCAIN: And third of all, to address the issue of the 12 million people.

O'REILLY: Health insurance, and again, it is — here's the folks. They're going, I can't afford to go to the doctor.

MCCAIN: Yes.

O'REILLY: Barack Obama's going to give me, give me, pay for my medical bills. The government is going to take it over. Everything's going to be swell.

MCCAIN: Sure.

O'REILLY: Mean guy McCain, he's not going to do that. Hey, I mean, it's a pretty attractive proposition, having the government pay all of the bills. And you're not going to do it.

MCCAIN: This is what the debate has got to be about. It's not the quality of health care in America, as you know. It's the highest quality. Go to any of the major...

O'REILLY: Expense.

MCCAIN: It's the cost and availability. Availability and affordability.

O'REILLY: Why is it so expensive?

MCCAIN: Because there is no real restraint or incentives to keep costs down. And that's the real problem. We've got to have incentives.

Look, if your employer, FOX, is paying your health insurance, you don't care how much it costs. If I give you $5,000 or a refundable tax credit, no matter your income is, and say find a health insurance policy of your choice…

O'REILLY: I'll shop around.

MCCAIN: Sure you will.

O'REILLY: What you are proposing is complicated. What Obama is proposing is simple.

MCCAIN: No.

O'REILLY: He's going to take care of it. He's going to pick up the tab. You're going to give them $5,000 and they're going to shop around. I'm just pointing it out.

MCCAIN: All I can say is I'm going to put health care choices in the hands of the family.

O'REILLY: Of the folks. OK, you going to release your medical records?

MCCAIN: Yes. Yes.

O'REILLY: When is that going to happen?

MCCAIN: Very soon. I think a couple of weeks. A week or two.

O'REILLY: OK.

MCCAIN: A week or so.

O'REILLY: Yes. Are you and Webb, the senator from Virginia, going to be able to get together on this new GI bill? Because we've got to reward our military in Iraq and Afghanistan in the toughest theaters we have to: health, education and housing. We have to help them.

MCCAIN: My proposal and others, Senator Graham, Senator Burn, is we'll place incentives for people to stay in the military.

O'REILLY: So the longer you stay, the more you get.

MCCAIN: Yes, the more you get, because we want people to stay in.

O'REILLY: That's fine.

MCCAIN: And I believe...

O'REILLY: But are you guys going to work it out?

MCCAIN: Sure. I certainly hope we can.

O'REILLY: OK, because I want to get this done quick.

MCCAIN: Yes, sir. We have to increase the benefits for the men and women who are serving and motivate those to serve.

(END VIDEOTAPE)

O'REILLY: All right. Now, Friday we'll get into what many people believe is John McCain's strongest suit, the War on Terror, and how to deal with our enemies abroad. There's also controversy in McCain's world view, especially about water-boarding and coerced interrogation. And we'll get into that Friday.

Copy: Content and Programming Copyright 2008 FOX News Network, LLC. ALL RIGHTS RESERVED. Transcription Copyright 2007 Voxant, Inc. (www.voxant.com), which takes sole responsibility for the accuracy of the transcription. ALL RIGHTS RESERVED. No license is granted to the user of this material except for the user's personal or internal use and, in such case, only one copy may be printed, nor shall user use any material for commercial purposes or in any fashion that may infringe upon FOX News Network, LLC'S and Voxant, Inc.'s copyrights or other proprietary rights or interests in the material. This is not a legal transcript for purposes of litigation.