URLAccessManager and SSL
URLAccessManager and SSL
- Subject: URLAccessManager and SSL
- From: Sandeep <email@hidden>
- Date: Fri, 21 Feb 2003 14:52:55 +0530
Hi everybody
In one of my carbon projects, I need to have a secure connection to a site.
Carbon documentation for URLAccessManager says that it supports secure
Hypertext Transfer Protocol (HTTPS). But I could not connect to a secure
server (e.g.
https://connect.apple.com/) using URLAccessManager.
I followed the following steps:
1. Check for the availability of URLAccessManager.
2. Create a URLReference.
3. Set the property kURLIsSecure.
OSStatus err = URLSetProperty(urlRef, kURLIsSecure, true, sizeof(Boolean));
The error code returned was -30778, which is kURLUnknownPropertyError.
4. Since this call failed, I then tried to set the property
kURLSSLCipherSuite.
OSStatus err = URLSetProperty(urlRef, kURLSSLCipherSuite,
SSL_RSA_WITH_NULL_MD5, sizeof(UInt16));
Again the error code returned was -30778, which is kURLUnknownPropertyError.
5. As the previous steps failed I tried the https url directly hoping that
URLAccessManager would take care of SSL. But it replies with an error 3SSL
required2.
I have searched the web and many mailing lists including 3Macintosh Network
Programming2 mailing list, but without a solution for using URLAccessManager
to connect to a site over SSL.
Has anybody used URLAccessManager for a secure connection. If so, could you
please provide me with a sample code or point me to some URL/document which
explains how to use URLAccessManager for a secure connection.
TIA
With regards
Sandeep
--------------------------------------------------------------
Robosoft Technologies - Partners in Product Development
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.