EAST RUTHERFORD, N.J. -- Eli Manning took a sip of a drink on the New York sideline, then slammed down the cup. Not in frustration, but in celebration.
Manning had a career-best 41 completions in 54 attempts and his perfect throw to Donnell finished off an 82-yard drive with a 12-yard touchdown. It passed for 441 yards and became the winningest quarterback in team history with 102.
"This win is special," Manning said.
New York (3-2) has won three straight and leads the NFC East. San Francisco (1-4) has lost four in a row and let this one slip away after an impressive comeback.
There were 20 plays of at least 15 yards in the game, and San Francisco had three on its late drive. Giants running back Shane Vereen had the last long play, a 24-yarder. And Manning, without his best weapon, Odell Beckham Jr., for much of the final series, engineered his 27th comeback victory in the fourth quarter or overtime.
"It ranks up there as far as comebacks," said coach Tom Coughlin, who passed Hall of Famer Paul Brown for 12th in career victories with 167. "They are resilient, tough-minded, they find themselves as a scrappy bunch.
"I told them in the locker room it took every guy, people were playing and pushed into roles that maybe they hadn't been in before. That's a real sign of a team."
Beckham's speed and moves were too much for the 49ers. He set up New York's first touchdown by using his elusiveness for a 31-yard reception down the middle. His 15-yard catch led to a 17-yard score on which he spun neatly and sped down the left sideline.
The touchdown was his last reception; he left with a hamstring injury, something that has plagued his short pro career, and returned only briefly on the winning series. Beckham finished with seven catches for 121 yards a week after he was fined for punching a Bills player in a win at Buffalo.
Both teams staged long drives all night. In an opening half filled with field goals, New York had possessions of 76, 81, and 66 yards, San Francisco had a 76-yard series. Aside from Vereen's 2-yard TD reception in the second quarter, though, it was all field goals. Josh Brown made 22- and 41-yarders for the Giants, and Phil Dawson countered from 43 and 22.
Manning forced an ill-advised pass for Beckham in the corner of the end zone that never had a chance and was picked off by Tramaine Brock to end the half. That kept the 49ers close, and they put together another long march, covering 88 yards in the third quarter, with Boldin sparking the drive on a 37-yard catch and run. He finished it with a 3-yard reception from Colin Kaepernick for a 13-13 tie.
Copyright 2015 by The Associated Press