[EMAIL PROTECTED] wrote:
>     uri.spec = "http://"; + domain + "/" + machine + "/" + path + path;
>     myURI = uri.resolve(uri.spec);

Uh....  Why, exactly?

>       // rewrites the url in the location bar back to http
>       // try not to rewrite .. and it works ..
>       nsiURI = ios.newURI("http:" + myURI.substring(7), null, null);

Why not just create the URI using newURI to start with, without worrying about 
myURI and |uri|?

>     // if it doesnt come from a link the ref is written here
>     var myChannel =
> ios.newChannelFromURI(nsiURI).QueryInterface(Components.interfaces.nsIHttpChannel);

Now set the originalURI of the channel to aURI, if that's what you want to 
appear in the URL bar.

-Boris

_______________________________________________
dev-tech-network mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-network

Reply via email to