C++\WinInet to log in - problem!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Hamlet6
    Junior Member
    • Jan 2014
    • 9

    #1

    C++\WinInet to log in - problem!

    Hi, hope someone out there can help.

    Using C++ and the WinINet API to perform HTTP non-interactive login with SSL. I am geting the error ERROR_WINHTTP_SECURE_CHANNEL_ERROR when calling HttpSendRequest() to log in for the first time.

    I followed the API-NG Reference guide to generate a self-signed certificate with OpenSSL, uploaded the .pem to Betfair, loaded it into certificate store, set it on the open session with InternetSetOption(), all good so far. Then I try and send the request to login with HttpSendRequest() but fails with the above error - there's little documentation on MSDN about this error.

    Is there an amount of time I need to wait from uploading the .pem to Betfair, and it being usable? It's been < 24 hours.

    Regards,
    Alex
  • Hamlet6
    Junior Member
    • Jan 2014
    • 9

    #2
    I have worked around the problem by using libcurl, with the same certificates. However if anyone ever finds the solution to this I'd be interested in hearing it!

    Alex

    Comment

    Working...
    X