I’m not very familiar with using a terminal, so I’ve written a little test program for iOS (should work for Mac OS X as well with minor modification) that does both a POST and a GET request using NSURLRequests. The Spark program I used was a combination of the temperature and led blinking examples in the documentation with some modifications. The project can be found here, http://jmp.sh/b/BDpRMT877rs0yEuP0WwR