• 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: NSURLConnection weirdiness
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSURLConnection weirdiness


  • Subject: Re: NSURLConnection weirdiness
  • From: Jerry Krinock <email@hidden>
  • Date: Fri, 28 May 2010 19:04:29 -0700

On 2010 May 28, at 02:58, Nava Carmon wrote:

> When I enter same link in Safari it takes a second to bring data.

I understand that you're saying it "works OK at the same time from the same IP address from Safari", meaning that you have ruled out being throttled by this "certain server", or your ISP.  OK, because these would be the first two suspects on my list.

> And after another trial I can access the link.

I'm assuming you mean exactly the same URL.  Some servers give better service to web browsers than to apps requesting via their API.

> What might be the reason for such a weird behavior?  How can I improve it?

You're going to have to discover a pattern.  For another data point with these types of problems, you'll usually want to open a Terminal window and send your request using the unix command curl(1).

> What is the role of cache policy with NSURLConnection?

Long answer:

http://developer.apple.com/mac/library/documentation/cocoa/conceptual/URLLoadingSystem/Concepts/CachePolicies.html

For consistency in testing, you'll probably want to use NSURLRequestReloadIgnoringCacheData.

Let us know if you find anything interesting.  Actually, a better list for this question would be email@hidden.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSURLConnection weirdiness
      • From: Nava Carmon <email@hidden>
References: 
 >NSURLConnection weirdiness (From: Nava Carmon <email@hidden>)

  • Prev by Date: Re: isKindofClass with NSData and NSKeyUnarchiver
  • Next by Date: Re: authenticating peers
  • Previous by thread: Re: NSURLConnection weirdiness
  • Next by thread: Re: NSURLConnection weirdiness
  • Index(es):
    • Date
    • Thread