Working code to send to DB using curl command. I had to revert to
using a shell command because the HttpClient class would not add
the user agent parameter properly. Apparently there's another
implementation floating around on github - might switch to that if
I need to do something more complicated than simple URL posts.