Late penalties from Matthew Taylor and Jack Collison saw West Ham reach the League Cup quarter-finals with a 2-0 win at 10-man Burnley.
Taylor converted the first spot-kick 14 minutes from time after Jason Shackell was adjudged to have brought down Kevin Nolan.
Keith Treacy was then sent off for bringing down Collison in stoppage time, the Wales international picking himself up to send Tom Heaton the wrong way.
Earlier, Kieran Trippier had rattled the West Ham crossbar with a rasping free-kick at Turf Moor.
Defeat was Burnley's first in 12 games and ended the Championship leaders' eight-match winning streak, while for a much-changed West Ham side, victory came as a welcome boost after an indifferent start to the club's Premier League campaign.
Sean Dyche made four changes to his Burnley team with three regular starters rested and David Jones missing out through suspension.
Former West Ham man Junior Stanislas was among those recalled while Sam Allardyce made nine changes from Sunday's 0-0 draw with Swansea City, only James Tomkins and Mohamed Diame retaining their starting berths.
It was Stanislas who had the game's first effort of note in the 11th minute, taking on debutant Pelly Ruddock before fizzing in a low drive from 25 yards that Adrian had to tip behind.
From the resulting corner, Stanislas fed Danny Ings inside the box, Burnley's top scorer turning and firing a shot on goal that the goalkeeper parried over the bar.
The hosts enjoyed much the better of the opening half, with Treacy in the 20th minute and Stanislas on the stroke of half-time both testing Adrian from distance, but on both occasions the Spaniard was able to move comfortably and gather the ball.
The visitors started the second half with much greater attacking intent, Tomkins seeing his goalbound header cleared in the 52nd minute, before Joe Cole's acrobatic effort was ruled out for offside a minute later.
Burnley responded in the 57th minute, Treacy thumping a volley over Adrian's bar following a clever short corner between Ings and Stanislas.
The hosts then went agonisingly close 10 minutes later, Tripper thundering a 25-yard free-kick against the crossbar with Adrian well beaten.
Second-half substitutes Stewart Downing and Collinson then combined, the latter seeing his powerful effort from close range blocked by Shackell.
Six minutes later came the game's key moment as Modibo Maiga flicked the ball on and Nolan, only just on as a substitute, fell under the challenge of Shackell and the referee pointed to the spot.
Taylor stepped up and sent his penalty to Heaton's left, the goalkeeper getting fingers to the ball on its way into the top corner.
As the hosts pressed for an equaliser, Heaton's rushed clearance fell to Collison, who looked set to fire into the unguarded net before being brought down by Treacy, who saw red for denying a goalscoring opportunity.
Collison calmly converted the penalty to seal the win and send West Ham into the quarter-finals.
|Coach: S. Dyche|
for J. Stanislas 84'
for D. Edgar 90+2'
|Feyenoord bring in Boulahrouz|
|Ibe hoping to follow Sterling footsteps|
|Maicon defends Scolari|
|Van Gaal calls for United to match Netherlands spirit|
|Guardiola congratulates Germany´s Bayern contingent|
|Pressure will not faze Cabella|
|Cuenca: Depor move an easy decision|
|Richardson keen on Roy reunion|
|Scotland to host England for November friendly|
|Kouyate enjoying West Ham life|
|Germany basks in World Cup glory|
|Seifert hails Bundesliga quality|
|Osman confident of Everton improvement|
|Kroos set for Real switch|
|MLS Preview: Sporting KC eye top spot, Red Bulls visit Union|
|Seattle Sounders 2 Portland Timbers 0: Conference leaders leave it late|
|2014 FIFA World Cup: Tweets of the tournament|
|2014 FIFA World Cup: Best goals|
|2014 FIFA World Cup: Tournament in numbers|
|2014 FIFA World Cup: To Russia with love?|
|2014 FIFA World Cup: Gotze glory rounds off captivating spectacle|
|World Cup win is unbelievable, says Gotze|
|Downing talks up Valencia arrival|
|Kramer: ´I can´t remember very much´|
|Peru Primera Division Review: Inti Gas go top, Universitario lose|
|Klose to decide on Germany future|
|Ecuador Primera A Review: Emelec poised for championship|
|Devastated Messi: Golden Ball not important|
|Messi comparison inspired Gotze, says Low|
|Hummels: I´m on another planet|
|Messi named player of the tournament|
|Sabella proud of players, defends Messi|
|Adebayor contracts malaria, out of US tour|
|Lahm ecstatic after World Cup triumph|
|Newcastle complete Cabella deal|
|Mascherano endures World Cup pain|
|2014 FIFA World Cup Final: Player Ratings|
|2014 FIFA World Cup Final: Where the final was won and lost|
|2014 FIFA World Cup Final: New Germany ready to dominate|
|2014 FIFA World Cup Final: Germany 1 Argentina 0 (after extra time)|
|BREAKING NEWS: Germany win World Cup|
|Rousseff thanks Brazil despite World Cup woe|
|Fred ´finished´ with Brazil|
|Manchester City lose to Dundee in pre-season opener|
|Rami keen to restore Milan glories|
|Thai Premier League Review: Muang Thong win again, BEC Tero Sasana pay penalty|
|In-demand Lovren joins Southampton on tour|
|Adidas to stick with Suarez|
|Cesar accepts Brazil career all but over|
|Rodriguez signs new Fiorentina deal|
|UEFA Champions League Preview: Celtic begin campaign, Steaua in Norway|
|K.League Review: Steelers maintain lead as top four all win|
|Suso eager for Liverpool stay|
|McDonald allays West Ham injury fears|
|Basanta urges Argentina to enjoy the moment|
|Schweinsteiger: Germany have big-match experience|
|Vidal relaxed over future|
|Bartomeu drooling over Barca strikeforce|
|Gerrard should remain captain, says Beckham|
|Cafu throws support behind Scolari|
|Sabella warns Argentina|
|MLS Review: Henry, Defoe star, as late goals rain down|
|Klinsmann: Germany are favourites|
|Robben rejects Van Gaal´s United proposal|
|Blind hopes Dutch youngsters stick together|
|Thiago Silva frustrated by failure|
|Adrian leaves Atletico for Porto|
|Van Gaal proud after Dutch win|
|Scolari leaving future up to CBF|
|Mixed emotions for Robben|
|FIFA World Cup: Brazil 0 Netherlands 3|
|Sabella remains unsure of Di Maria fitness|
|Abdennour pleased with friendly workout|
|Halilhodzic to take charge at Trabzonspor|
|Fenerbahce delighted to finally sign Diego|
|Low and Germany ready for finale|
|Lyon agree Rose deal|
|Neymar´s World Cup delights Bartomeu|
|De Laurentiis: Higuain going nowhere|
|Beckham lauds ´amazing´ Messi|
|PSG beat Videoton in seven-goal thriller|
|Horta makes Malaga switch|
|Southampton seal deal for Pelle|
|Barcelona ´convinced´ of reduction in Suarez ban|
|West Ham held by League Two Stevenage|
|Bianchi makes move to England|
|West Ham must be more clinical, says Allardyce|
|Germany experience will count - Lehmann|
|Berahino and Dorrans strike in Albion win|
|Ince settling quickly at Hull|
|Swansea in talks with Napoli over Michu|
|Dodo eyes Champions League with Inter|
|FIFA World Cup Preview: Germany v Argentina|
|Huddlestone out to hit the ground running|
|Pogba not bound for Chelsea - agent|
|Barry feeling fresh with Everton|
|Arteta plays down transfer talk|
|PSV complete De Jong deal|
|Colback excited for busy pre-season|
|Milan and Orlando in talks over Robinho|
|West Brom bring in Pocognoli|
|Maradona: Messi will define World Cup final|
|Rami seals Milan move|
|Kuyt eager to secure third place|
|Rodriguez talks up Real Madrid move|
|Bebe welcomes Benfica link|
|Koeman admits unsettled Lovren could leave|
|FIFA World Cup Final Preview: Argentina face old foes Germany with Brazil´s party in tatters|
|FIFA World Cup Final Preview: Messi aims to cement legacy|
|FIFA World Cup Final Preview: Sabella on the brink of greatness|
|FIFA World Cup Final Preview: Muller seeks to augment outstanding finals record|
|FIFA World Cup Final Preview: Low´s hard work pays off|
|FIFA World Cup Final Preview: The coaches to have tasted glory|
|FIFA World Cup Final Preview: The five most iconic finals|
|FIFA World Cup Final Preview: The five most iconic finals|
|FIFA World Cup Final Preview: Germany´s route to the final|
|FIFA World Cup Final Preview: Brazil 2014 produces moments to remember|
|SJ Earthquakes 1 DC United 2: Johnson, Silva score as Eastern Conference leaders extend advantage|
|Otamendi unfazed by price tag|
|Sam targeting top three with Schalke|
|Rodriguez out for revenge|
|Bruno Alves could leave Fenerbahce|
|Thiago Silva endured sleepless nights|
|Final on enemy soil ´special´, says Zabaleta|
|Arteta: Sanchez signing highlights Arsenal´s ambition|
|Mertesacker demands repeat performance|
|Scolari gets federation backing|
|Balotelli poses with shotgun|
|Lizarazu lauds Argentina´s craftiness|