Currently all Pakistani citizens need to contact their local Sri Lanka embassy in order to apply for a tourist visa.

You are not able to apply online.