add curl snippet to readme