Get HTTP header fields only on iPhone

Posted by amit on Stack Overflow See other posts from Stack Overflow or by amit
Published on 2010-04-02T05:33:25Z Indexed on 2010/04/02 5:43 UTC
Read the original article Hit count: 523

Filed under:
|
|
|

I want to get only the headers of an URL request. I have been using stringWithContentsOfURL() for all downloading so far, but now I am only interested in the headers and downloading the entire file is not feasible as it is too large.

I have found solutions which show how to read the headers after the response has been receieved, but how do I specify in the request that I only wish to download headers. Skip the body!

Thanks.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about header