HTTPS using AJAX

Established a connection and transmitted JSON. Server returned XML
error, but the client can reach the server