• 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
New class for synchronous URL loading?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

New class for synchronous URL loading?


  • Subject: New class for synchronous URL loading?
  • From: Jerry Krinock <email@hidden>
  • Date: Sun, 6 Jul 2008 20:07:45 -0700

I built my own class a couple years ago for loading URLs synchronously. The interface is one class method. Basically, you give it a URL and some stuff, and it goes off and either times out or returns data. Synopsis:

    int result = [SSSynchronousHTTP SSSynchronousHTTPURL:url
                                              httpMethod:@"POST"
                                              bodyString:txString
                                                username:nil
                                                password:nil
                                                 timeout:20.0
                                               userAgent:nil
                                             alertOption:alertOption
                                             hdlResponse:response
                                         hdlResponseData:responseData
                                                hdlError:error] ;

I thought I'd read somewhere that Apple had introduced a new class in Leopard which did something like this, but now I can't find it. Was I dreaming?

Jerry

_______________________________________________
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


  • Follow-Ups:
    • Re: New class for synchronous URL loading?
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: iPhone: CFWriteStreamWrite
  • Next by Date: Re: New class for synchronous URL loading?
  • Previous by thread: Re: iPhone: CFWriteStreamWrite
  • Next by thread: Re: New class for synchronous URL loading?
  • Index(es):
    • Date
    • Thread