EAST RUTHERFORD, N.J. (AP) The Patriots haven't had a tougher test than the Giants gave them Sunday.
New England passed - and remained undefeated - on Stephen Gostkowski's 54-yard field goal with 1 second remaining for a 27-26 victory over New York.
The Giants, who seemed to have New England's number, were poised to knock the Patriots from the ranks of the unbeaten on Josh Brown's fourth field goal with 1:47 remaining. But you don't beat the Patriots (9-0) with field goals.
More from FoxSports
After Brown made his franchise-record 27th field goal from 29 yards, Tom Brady drove the Patriots 44 yards, converting a fourth-and-10 on the series. He also got lucky when Giants rookie safety Landon Collins dropped an interception.
Gostkowski, the NFL's leading scorer the last three seasons, sent his winning kick soaring through the uprights.
New York (5-5) has given the Patriots fits under Tom Coughlin, including two Super Bowl wins, and nearly pulled off another victory. A 5-yard pass to Odell Beckham Jr. on New York's final drive was originally called a touchdown, then reversed by a video review.
That possession was set up when Trumaine McBride intercepted Brady at the goal line, setting up an 86-yard, 15-play march to Brown's field goal.
That left room for Brady, who hit Danny Amendola three times for 32 yards on the winning series.
Both Beckham and New England's Rob Gronkowski had the longest TD catches of their careers: Beckham for 87 yards and Gronkowski for 76.
The Patriots inexorably marched downfield with the opening kickoff on a 14-play, 80-yard drive. Backup tight end Scott Chandler capped it with a 1-yard reception, giving New England a point in an NFL-record 32 straight quarters. They extended it to 35 with Gostkowski's second-quarter field goal; LeGarrette Blount's 1-yard TD run following Amendola's 82-yard punt runback in the third - the longest of Amendola's career; and the long pass to Gronkowski on which New York's Craig Dahl and Brandon Meriweather collided.
But they also were plagued by critical pass interference penalties, and lost top receiver Julian Edelman in the first half with a foot injury. Of course, they still had Brady and Gostkowski.
The Giants, still in first place in the NFC East, controlled long portions of the game.
Just 51 seconds after Chandler's touchdown, Beckham stunned the Patriots with a spectacular reaching catch-and-run on which he split New England's two best defensive backs, Malcolm Butler and Devin McCourty. Beckham embellished his celebration with a salute at attention to the crowd; the Giants honored the military before the game.
The Giants had another quick drive in them, ending the first half by covering 74 yards in 54 seconds. The seven-play series included Elli Manning's 31-yard passes to Rueben Randle and Will Tye, the latter getting to the Patriots 1.
Manning, as sharp as ever in the first half, hit Dwayne Harris in the back left corner of the end zone for a 17-10 halftime edge. Manning had a career-best for one half of 251 yards passing. Brady had 127.
Manning got plenty of help from New England mistakes to start the second half: 36 yards on a pair of pass interference penalties. Brown made a 38-yard field goal to end that possession. He later hit a 53-yarder for a 23-17 lead.
Against New England, that's rarely enough.
AP NFL website: www.pro32.ap.org and www.twitter.com/AP-NFL