PULLMAN, Washington (Ticker) -- Drew Dunning's second 35-yard field goal was prettier than the first, but just as important.
Dunning kicked three field goals, including the game-winning 35-yarder in the first overtime, to lift 17th-ranked Washington State to a 30-27 win over No. 20 Southern California in the Pac-10 Conference.
Washington State (5-1, 2-0 Pac-10) had forced overtime on a field goal by Dunning from the same distance with 1:50 remaining in regulation. Dunning appeared to miss as the ball left his foot, yet his low knuckleball-like kick barely found its way over the goal post.
USC (3-2, 1-1) had the first possession in overtime, but was unable to move the ball and quarterback Carson Palmer was sacked for a seven-yard loss. Ryan Killeen, who had missed an extra point in the fourth quarter, failed on a 52-yard field goal attempt.
That set the stage for Dunning, whose overtime 35-yarder went right through the uprights, snapping the Cougars' six-game home losing streak to the Trojans.
Jason Gesser had another big day, completing 23-of-44 passes for 315 yards and two touchdowns. He unloaded a 52-yard bomb to Sammy Moore that led to the game-tying field goal by Dunning.
"I just let the ball go and Sammy ran under and caught it," Gesser said. "We should have scored a touchdown on that drive and never should have had it go to overtime. But that's the way things go. We wanted to make it fun and exciting for everybody else."
Gesser, who threw for 431 yards in last week's win over California, has thrown a TD pass in 18 straight games, breaking the school record held by Ryan Leaf.
"Anytime you're mentioned with the great quarterbacks who have been through WSU, it's great," Gesser said. "But the win means more to me than anything else."
Carson Palmer of USC threw for 381 yards and two scores, completing 32-of-50 passes.
"I was pleased with what we did in the second half," USC coach Pete Carroll said. "Carson Palmer played a great game."
USC entered the game as the nation's top defensive team, but allowed the Cougars to pile up 516 yards. The Cougars gained 201 yards on the ground, with Jermaine Green gaining 92 yards on six carries.
"It was a difficult game for us, I did a lousy job with the defense," Carroll said. "We didn't get the heat we wanted with our pass rush."
The Trojans played half of the game without star safety Troy Polamalu, who left in the first quarter with a leg injury before returning in the second half.
Palmer lofted a 55-yard TD pass to Mike Williams with 4:10 left in the fourth quarter to put the Trojans back in front at 27-24, but Killeen missed the extra point.
About four minutes earlier, Palmer scored on a three-yard run to cut the lead to three points.
Williams caught six passes for 112 yards and teammate Kareem Kelly had eight catches for 66 yards.
The Trojans drove 80 yards for a score on the opening possession of the game, capped by a six-yard TD run by Sultan McCullough.
Dunning kicked a 48-yard field goal later in the quarter to cut the advantage to 7-3 and the Cougars took their first lead later in the period on a three-yard TD pass from Gesser to Mike Bush.
Dunning also missed a 27-yard attempt early in the fourth quarter.
Washington State's Devard Darling fumbled the second half kickoff and USC recovered, leading to a 15-yard TD pass from Palmer to Malaefou MacKenzie.
The Cougars regained the lead 25 seconds later on a 75-yard TD run by Jermaine Green.
Gesser increased Washington State's lead to 24-14 with a three-yard TD pass to Darling with 10:03 left in the fourth quarter. Gesser nearly was intercepted on his previous pass.
Jim Tippins of the Cougars caught 12 passes for 81 yards.