Skip to content

Instantly share code, notes, and snippets.

@jpablobr
Created January 7, 2011 13:01
Show Gist options
  • Select an option

  • Save jpablobr/769428 to your computer and use it in GitHub Desktop.

Select an option

Save jpablobr/769428 to your computer and use it in GitHub Desktop.
test-services-via-curl
#!/usr/env bash
RESULT=`curl -ipost -s http://service.com/api/users -pname=Jhon+Doe -pid=12`
if [[ $RESULT =~ 'jhon-doe' ]]
echo "Test Create: Success. Got: $result"
else
echo "Test Create: Failure. Got: $result"
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment