Re: using NSURLConnection to get only the HTTP header
Re: using NSURLConnection to get only the HTTP header
- Subject: Re: using NSURLConnection to get only the HTTP header
- From: John Mikros <email@hidden>
- Date: Tue, 27 Jun 2006 19:54:53 -0700
Well, my test case is 12K, and I was getting the whole file.
Really, anything more than just the header is too much data. The
goal is to minimize the hit on our web server.
thanks,
-john
On Jun 27, 2006, at 7:50 PM, Chris Suter wrote:
On 28/06/2006, at 12:04 PM, John Mikros wrote:
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
Are you sure the cancel isn't working? Is it a small page you're
downloading? If so, the whole page might have been sent before you
get the chance to cancel it.
- Chris
_______________________________________________
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