• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: CFNetwork HTTPS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CFNetwork HTTPS


  • Subject: Re: CFNetwork HTTPS
  • From: Joshua <email@hidden>
  • Date: Sun, 29 Apr 2007 05:20:06 -0700 (PDT)

Thanks. I am actually making that call. Because I was having problems I was assuming I needed to
do more to get HTTPS to work. I'll post a new question with more details about what I am seeing.

- Josh

--- Frederick Cheung <email@hidden> wrote:

>
> On 26 Apr 2007, at 01:54, Joshua wrote:
>
> > I'm trying to use a read stream with "POST" to a https url. My code
> > works with non-https, I can
> > read and get other urls. I thought I might need to set the SSL
> > level using the call below, but the
> > call below using kCFStreamPropertySocketSecurityLevel always
> > returns false (but if I comment out
> > the first setProperty the second succeeds). Is there a reason it
> > cannot set this property? And do
> > I need it to do HTTPS?
> >
> Are you using CFReadStreamCreateForHTTPRequest ? If so then you don't
> need to do anything special: if the url passed is https:// it will
> use https
>
> Fred
>
> > Any info would be appreciated.
> >
> > - Josh
> >
> >       setProperty = CFReadStreamSetProperty( readStreamRef,
> >
> > kCFStreamPropertySocketSecurityLevel,
> >
> > kCFStreamSocketSecurityLevelNegotiatedSSL );
> >
> >       setProperty = CFReadStreamSetProperty( readStreamRef,
> >
> > kCFStreamPropertyHTTPAttemptPersistentConnection,
> >                                              kCFBooleanTrue);
> >  _______________________________________________
> > Do not post admin requests to the list. They will be ignored.
> > Macnetworkprog mailing list      (email@hidden)
> > Help/Unsubscribe/Update your Subscription:
> > email@hidden
> >
> > This email sent to email@hidden
>
> >  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Macnetworkprog mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: CFNetwork HTTPS (From: Frederick Cheung <email@hidden>)

  • Prev by Date: Re: CFNetwork HTTPS
  • Next by Date: CFNetwork POST with redirect.
  • Previous by thread: Re: CFNetwork HTTPS
  • Next by thread: CFNetwork POST with redirect.
  • Index(es):
    • Date
    • Thread