I am trying to implement a c++ application that will access an HTTPS server using IServerXMLHTTPRequest.

When I try to run the code below, the server returns an 403 (Forbidden) error.

What could be the cause of this? And, what should I do about this?

My current code is:

Code:
    CComPtr<MSXML2::IServerXMLHTTPRequest> xmlHttp;
    HRESULT hr = xmlHttp.CoCreateInstance(__uuidof(ServerXMLHTTP));
    hr = xmlHttp->open(_T("POST"),_T("https://someurl.com/somepath"),false);
    hr = xmlHttp->setTimeouts( 100000,
            50000,
            100000,
            100000
            );
    hr = xmlHttp->setOption(SXH_OPTION_SELECT_CLIENT_SSL_CERT,
                            xmlHttp->getOption(SXH_OPTION_SELECT_CLIENT_SSL_CERT));
    hr = xmlHttp->setRequestHeader(_T("Content-Type"),_T("application/x-www-form-urlencoded"));
    sPostData = ...;
    hr = xmlHttp->send((BSTR)sPostData);