Straining when going to the toilet is a classic symptom of constipation, and usually occurs when stools are too hard to easily pass.