I don't know if any of the Harry Flashman books are available online, but I heartily recommend them. Flashman is a fictional British Army cavalry officer that serves as the other side of the coin to C.S. Forester's Horatio Hornblower. The Flashman book series was written by George MacDonlad Fraser, and it documents Flashman's career during the peak of the British Empire. Flash Harry, as he calls himself, was born in the early 1820s, and lived well into the twentieth century. But where Hornblower was righteous, brave, super-competent, a patriot and a humanitarian, Flashman is a coward, a cad, cheat, bully, a kiss-up and a shameless womanizer with nothing but contempt for God, Queen and Country.
What he does have going for him is good looks, great skill on horseback, and the ability to learn a new language in just a few months (like a child). He also has incredibly good luck, and his various attempts to escape bodily harm are usually interpreted as acts of heroism, and the few who see through him usually die heroically in action before they can expose his cowardice and treachery. Flashman is a unrepentant liar, but he is brutally honest with himself, and with us. The books are written first person, as his memoirs, discovered years after his death. As a result, you look over his shoulder as Harry gets to participate in and report truthfully on most of the great historical events of the 19th century, and he gets plenty of honors and promotions along the way. This is not a politically correct view of history. You get the impression that this is how things actually went down.
Flashman was one of the few survivors of the British rout in Afghanistan and of the Charge of the Light Brigade and the only paleface who lived through Little Big Horn. He served in both sides of the American Civil War, (as a private and a General!), worked in the Atlantic slave trade and was present at the Indian Mutiny, the Boxer Rebellion, and several other notable actions. He is totally despicable, but always emerges smelling like a rose, with his career and reputation intact.
But Fraser is a terrific comic writer, and a highly qualified military historian, so you will get a chance to learn a lot about the late British Empire, and some of the events and personalities involved. As well as being everywhere and doing everything, Flash Harry meets everybody who was anybody in Victorian times, including Bismark, Sitting Bull, Queen Victoria and Abraham Lincoln.
I can't recommend this series too highly. They are hysterically funny, historically accurate, and a shrewd study of human nature. Look him up, he's available in paperback. If possible, start the series with "Flashman at the Charge", and read the rest in chronological order.