NSNotificationCenter and ASIHTTPRequest
<p>I hope to get the http header info(file size) in asynchronous mode.</p>

<p>So I initialize as codes:</p>

<pre><code>[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(processReadResponseHeaders:) name:@"readResponseHeaders"
                                           object:nil];
</code></pre>

<p>my codes to read the http header </p>

<pre><code>-(void)processReadResponseHeaders: (ASIHTTPRequest *)request ;//(id)sender;
{


    unsigned long long contentLength = [request contentLength]; //error occurs here

}
</code></pre>

<p>It has to change the source code of ASIHTTPRequest.m</p>

<p>I did add my codes in function readResponseHeaders to notify the event is triggered )</p>

<pre><code>- (void)readResponseHeaders
{
     //.........................
    [[NSNotificationCenter defaultCenter]  postNotificationName:@"readResponseHeaders"  object:self];//

}
</code></pre>

<p>the log file reports:</p>

<p>2010-05-15 13:47:38.034 myapp[2187:6a63] <em>*</em> -[NSConcreteNotification contentLength]: unrecognized selector sent to instance 0x46e5bb0</p>

<p>Welcome any comment</p>

<p>Thanks
interdev</p>
