Oxford and early career
At New College Oxford (1908–1911), Cooper's Eton friendship with John Neville Manners won him entry into a circle of young aristocrats and intellectuals known as "The Coterie", including Patrick Shaw-Stewart, Raymond Asquith, Sir Denis Anson, Edward Horner and Lady Diana Manners. Cooper cultivated a reputation for eloquence and fast living, and although he had established a reputation as a poet, he earned an even stronger reputation for gambling, womanising and drinking in his studied emulation of the life of the 18th- and 19th-century Whig statesman Charles James Fox. Cooper's memory and gift for writing enabled him to do reasonably well at exams. He obtained a second in Modern History.
Following Oxford, Cooper entered the Foreign Service in October 1913, at the third attempt. During the war, he worked in the commercial and the contraband departments. Owing to the national importance of his work at the cipher desk, he was exempted from military service until June 1917, when he joined the Grenadier Guards. He had not actively sought to join the army but was happy to be "released" as a result of the manpower shortage, as he thought joining the Army the decent thing to do. To his surprise, most of his fellow officer cadets were working-class and lower-middle-class men, almost all of whom had already served in the ranks.
Cooper spent six months on the Western Front during which he, Philip Ziegler wrote, proved himself "exceptionally courageous, resourceful, and a natural leader of men" when the life expectancy of junior officers was very brief. He suffered a minor wound in the advance to the Albert Canal in August 1918 and was awarded the Distinguished Service Order (DSO) for conspicuous gallantry, a rare decoration for a junior officer. The citation for his DSO appeared in The London Gazette in November 1918 and reads as follows:
For conspicuous gallantry during an attack. Although the remainder of his company lost direction he led his platoon on to the objective and captured part of it. When supports arrived he led two sections against a machine-gun post, the four men immediately behind him were shot, but he went on alone and compelled the surrender of eighteen men and two machine guns. Later, with a patrol of six men he succeeded in capturing eighty-nine prisoners. He showed splendid courage and devotion to duty.
Almost all of his closest friends, including Shaw-Stewart, Horner and Asquith, were killed in the war, which allowed him to draw closer to Lady Diana Manners, a socialite who was known for her eccentricities.