Using ruby to issue curl POST commands