By using transfer-matrix method we compute survival probabilities for the directed percolation problem on strips of a square lattice, and get very precise estimates of their Yang-Lee zeros lying closest to the real axis in the complex plane of occupation probability. This allows us to get accurate values for transverse-size critical exponent and percolation threshold.