snippets are in curl/php format