• 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
using NSURLConnection to get only the HTTP header
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

using NSURLConnection to get only the HTTP header


  • Subject: using NSURLConnection to get only the HTTP header
  • From: John Mikros <email@hidden>
  • Date: Tue, 27 Jun 2006 19:04:23 -0700

Hello all,

I'm using NSURLConnection to download a file from a web server.

However, now I need to be able to check the last modified date in the HTTP header for the file without actually downloading the file.

Is this possible to do with NSURLConnection? I was hoping that I could look at the header in
- (void)connection:(NSURLConnection *)connection didReceiveResponse: (NSURLResponse *)response


and then cancel the download, but using tcpdump, I see that I'm downloading the whole file anyway.


Anyone have any ideas how to do what I want?

thanks
-john
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: using NSURLConnection to get only the HTTP header
      • From: "Adam R. Maxwell" <email@hidden>
    • Re: using NSURLConnection to get only the HTTP header
      • From: Chris Suter <email@hidden>
    • Re: using NSURLConnection to get only the HTTP header
      • From: John Pannell <email@hidden>
  • Prev by Date: Re: Arbitrary polygons crash -[NSBezierPath stroke]
  • Next by Date: Re: NSFindAndReplace
  • Previous by thread: Re: Arbitrary polygons crash -[NSBezierPath stroke]
  • Next by thread: Re: using NSURLConnection to get only the HTTP header
  • Index(es):
    • Date
    • Thread