Ottoman troops take up positions against the advancing British and their Arab allies in Gaza, 1917. Despite insurmountable short comings in logistics, supply and weaponry, the Ottoman Empire put up a good fight against the allied powers, even scoring some impressive victories.
Pictured below is a closeup of the machine gun crew. Note the heavy belt fed machine gun, which would have been extremely difficult to transport especially in the heat and terrain of the Middle East.
The Ottomans were able to hold the front in Sinai and Palestine until near the end of the war, when their resistance collapsed and the British entered Jerusalem.