OpenObserver::OnStartRequest(nsIChannel* channel, nsISupports* context)
InputTestConsumer::OnStartRequest(nsIChannel* channel, nsISupports* context)
OpenObserver::OnStartRequest(nsIChannel* channel, nsISupports* context){    printf("\n+++ OpenObserver::OnStartRequest +++. Context = %p\n", context);    char* type;    PRInt32 length = -1;    nsresult rv;    rv = channel->GetContentType(&type);    NS_ASSERTION(NS_SUCCEEDED(rv), "GetContentType failed");    rv = channel->GetContentLength(&length);    NS_ASSERTION(NS_SUCCEEDED(rv), "GetContentLength failed");    printf("    contentType = %s length = %d\n", type, length);    nsCRT::free(type);    mInputConsumer->SetAsyncOpenCompleted();    return NS_OK;}