On Sat, Jun 13, 2009 at 9:20 AM, joe ertaba<[email protected]> wrote:
> I need to get a url's content from JavaScript, currently I use
> XMLHttpRequest but at this time I want to get the content from a proxy
> server, for example I want to get a www.google.com content but not from
> direct connection but from a local proxy server (127.0.0.1:3244), Is there
> any way to get a url's content from proxy server without changing FF's
> global proxy ?

Is it possible to use a nsIURI build with the proxy as the "host+port"
part, and your target URL as the "path" part, like I can do throught
HTTP ? If yes, you may replace use of XMLHttpRequest by use of  the
nsIHttpChannel interface (see
https://developer.mozilla.org/en/nsIHttpChannel) with that build
nsIURI ...
-- 
BBa
_______________________________________________
Project_owners mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/project_owners

Reply via email to