Christian Biesinger wrote:
zen wrote:

How can I set the arguments of the CreateTransport() if i need Https connection through nsISocketTransport?


Use "ssl" as the socket type (i.e. pass an array containing "ssl" as the aSocketTypes argument)

Should I use the SSL port as well, or just 80 will do?
Should I use SSL protocol to establish connection instead the normal http GET?


Can I use nsISocketTransport to download a binary file? What other preferable method?


Yeah, that should work fine (although if you are using JavaScript, handling binary data won't be fun). But if you just want to use HTTP, then I would suggest using the normal nsIChannel interfaces (nsIIOService::newChannel etc).

-biesi
_______________________________________________
Mozilla-netlib mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-netlib

Reply via email to