HTTPSSecureSocket wrong content type on POST

I am POSTing form data to a REST API and am receiving an error. Is there a workaround?

[code] …
HTTPSFreshDesk.Secure = True
HTTPSFreshDesk.SetFormData(form)
HTTPSFreshDesk.SetRequestHeader(“Authorization”, “Basic [api string]”)
HTTPSFreshDesk.RequestHeaders.AppendHeader(“Content-Type”, “application/json”)
HTTPSFreshDesk.Yield = True
HTTPSFreshDesk.ConnectionType = SSLSocket.SSLv23
response = HTTPSFreshDesk.Post(requestURL, 5)
status = HTTPSFreshDesk.HTTPStatusCode
errCode = HTTPSFreshDesk.LastErrorCode

Return response[/code]

HTTPSecureSocket.Post assumes application/x-www-form-urlencoded, and so does SetFormData. Use SetRequestContent instead of SetFormData, and SendRequest instead of Post.