Reciprocity laws on curves