Updating how posts are made to Apple to work with the proxy and over SSL

Updating the code for the post request to work over SSL and via the proxy