proper encoding of the json, require ssl to prevent EOF error, dont URI escape