can curl do submission POST method through JavaScript OnClick (Submit Button validation) ?

Please help me, really urgent palz