How to wrap cylindrical object around 2 posts
Try the ShrinkWarp modifier (add more geometry), or try making a simulation.

Try going into wireframe and by pressing the view keys (1, 3, 7,Ctrl + 1, Ctrl + 3, 9) getting your vertices right.