Use HTTPSConnection when url is https in post_multipart.

Makes post_multipart optionally use HTTPSConnection and posturl check if the URL is https.