It is probably that you have not complete set up everything needed to 
"embed" necko. 

Take a look at:

http://lxr.mozilla.org/seamonkey/source/netwerk/test/TestProtocols.cpp

Specifically at line 528. 

Let me know if that helps,


Alexey Semenov wrote:

> I'm developer of the project based on Mozilla code and I've encountered
> problem that drives me crazy.
> I need to get and parse some binary file from arbitrary URI, so I've tried
> the following:
> 
>         nsIInputStream* in;
>         rv = NS_OpenURI(&in, uri);
>         if (NS_FAILED(rv))
>          return PR_FALSE;
> 
> and then, for simplicity:
> 
>         char c; PRUint32 count;
>         rv = in->Read(&c, 1, &count);
> 
> but the above  code works only on local files, when I tried any http url the
> "Read()" method does not return at all.
> Where is my fault?
> 
> --
> Alexey Semenov
> LG Soft Lab
> 
> 


Reply via email to