I can use nsISocketTransport for normal http GET, however I facing
problem when pointing to a binary file located in https server.
How can I set the arguments of the CreateTransport() if i need Https
connection through nsISocketTransport?
Can I use nsISocketTransport to download a binary file? What other
preferable method?
please advice.
-zen
Use "ssl" as the socket type (i.e. pass an array containing "ssl" as the
aSocketTypes argument)
> 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
Port 443... And just send a GET as usual, Necko will take care of the
SSL stuff.