NEW YORK — Randall Delgado outpitched Matt Harvey for his first major league win in more than a year, and the Arizona Diamondbacks snapped a five-game skid with a 5-3 victory over the New York Mets after a long rain delay Wednesday night.

Cody Ross hit a three-run homer off Harvey to put Arizona ahead, and Delgado struck out a career-high nine in seven innings to give the NL West leaders their first victory by a starting pitcher since Wade Miley beat St. Louis on June 5.

Diamondbacks starters went 0-11 over the next 24 games until Delgado (1-2) held New York in check for his first win since June 6, 2012, with Atlanta at Miami. The 23-year-old right-hander from Panama, obtained in the January trade that sent slugger Justin Upton to the Braves, was 0-6 in his previous nine starts dating to last season.

He had received only six runs of support during that stretch, including two in three starts for Arizona — none in his past two outings.

Josh Satin hit his first career homer and David Wright also went deep before a rare packed house at Citi Field. Daniel Murphy homered in the eighth off David Hernandez, then ex-Met Heath Bell got three outs for his 15th save.

The Diamondbacks ended their longest slide of the season and won for the second time in 10 games, improving to 2-7 on a 10-game road trip against NL East teams.

Harvey (7-2) is a strong candidate to start the All-Star game on his home mound July 16 at Citi Field. Hoping to boost his bid, he pitched through traffic early and took a shutout into the sixth. But he faded on a humid night and ended up charged with nine hits and a season-high five runs in six-plus innings.

The 24-year-old right-hander struck out nine and walked three, matching his most free passes this year. The five runs allowed tied his career high set Aug. 5 last year in San Diego.

Diamondbacks slugger Paul Goldschmidt was rested, so teammate Cliff Pennington and manager Kirk Gibson needled the big first baseman that he must be under the weather with "Harveyitis."

But on this night, it was Delgado who had staying power. Eric Chavez started in Goldschmidt's place and batted third, chasing Harvey with an RBI double off the left-field wall in the seventh.

A sellout crowd of 41,257 on Fireworks Night — the largest at Citi Field all season — waited out a rain delay of 1 hour, 51 minutes, and filled up the seats enough to do a respectable Wave.

Harvey was slow to find a rhythm, though not his 98 mph fastball. Two singles and a walk loaded the bases in the first before Martin Prado grounded sharply into an inning-ending double play.

Prado then failed to make a barehanded pickup of Eric Young Jr.'s slow roller that went for an infield single leading off the bottom half. The third baseman accidentally booted the ball toward the foul line, then finally stomped it twice into the turf in frustration.

Harvey quickly turned it on, striking out his next four batters, and took a shutout into the sixth before Arizona got to him. Miguel Montero walked, Prado singled and Ross lofted a two-out drive into the left-field corner for his fifth home run.

Suddenly trailing 3-2, Harvey yanked his cap off his head and wiped sweat off his face.

He walked Tony Campana to start the seventh and Aaron Hill blooped a single before Chavez's double made it 4-2. Montero added a sacrifice fly off Scott Rice.

Mets shortstop Omar Quintanilla made a spectacular, diving play to rob Ross of a hit in the fourth.

NOTES: Diamondbacks OF Gerardo Parra was out of the starting lineup for the second consecutive night after he was shaken up trying to make a diving catch on the warning track Monday, leaving him with scrapes and bruises on his face and arm. Gibson said he thought Parra would probably be available off the bench. ... Rookie SS Didi Gregorius also was rested, in favor of Pennington. ... Arizona has not announced who will start Friday night against Colorado in place of RHP Trevor Cahill, put on the 15-day disabled list Monday with a bruised right hip. ... The Diamondbacks placed backup infielder Willie Bloomquist on the 15-day DL with a bruised left hand, retroactive to June 27, and recalled Campana from Triple-A Reno. The speedy Campana took an overnight flight and was in the leadoff spot. He threw out Murphy at second on a leadoff single in the fourth off the left-center fence — just before Wright homered. ... Goldschmidt flied out as a pinch-hitter in the eighth. ... Mets manager Terry Collins said RHP Shaun Marcum (1-9) will make his scheduled start Saturday night in Milwaukee after an MRI came back clean. Collins said Marcum felt a little tingling in his hand during his last outing, the same symptoms he had in spring training that landed him on the DL to start the season with tightness in his neck and upper back. "He's fine," Collins said. ... Harvey won his major league debut in Arizona last July 26 with 11 strikeouts in 5 1-3 shutout innings.