Well, from VB, you can use the IExplorer COM control -- really kinda spiffy
I have to admit... you can insert a browser into a VB program. Unless you are
actually DISPLAYING the content of the HTTPS page you are getting, I would
not mess with it.
You haven't given a compelling reason yet WHY you need to use IExplorer just to
"get" the HTTPS page(s), other than "everyone has it" -
BTW-
SSL is freely available HERE. It's a good library, free, and clear, and has RSA/ Diffie-Hellman, and all the readily used cyphers - I think it even does TLS.
If you want to truly "roll-your-own" industrial strength SSL utility, I would NOT use
IExplorer - Here's what I did with Java (pretty much what you need, I think):
1. I d/l'ed and compiled SSL (link already given)
2. I write a JNDI "wrapper" around SSL - you can find one readily coded
HERE.
3. Your "utility" does the following:
a. open an SSL socket using SSL socket open...
b. does a post/ or get on the remote site to the URL / URI
c. Opens the socket input stream, and reads until the bytestream is
exhausted.
Here's the "guts" of the Java-version -- taken directly from an international
payment gateway project :-)
code:
/* SSLEAYY ALGORITHM */
javaSSLSocket s = new javaSSLSocket("ssl.wherever.net",443);
s.setSoLinger(true, 30);
DataOutputStream dos = new DataOutputStream(s.getOutputStream());
dos.writeBytes("POST /URI/receiver.dll?param1=thisval\r\n"); // SSLeay
dos.writeBytes("Accept: text/*\r\n");
dos.writeBytes("User-Agent: SSL TestApp\r\n");
dos.writeBytes("Content-Type: x-Visa-II/x-auth\r\n");
dos.writeBytes("Content-Length: " + Integer.toString(contLen+2) + "\r\n");
dos.writeBytes("\r\n"); // TERMINATE HEADERS
for(i=0; i < contLen+2; i++) {
int temp = myBytes[i] & 0xff;
dos.write(myBytes[i] & 0xff);
}
notice the code makes a POST, sends the HTTP headers, then sends the
"file" post-data - this illutrates pretty much what your utility will have to do.
Notice the little "for-loop" at the end? - THAT's a little magic -
you HAVE to ship bytes - not java chars down the wire... Java forces all
chars to be 16-bit NLS, sign-extended... boy does THAT make a mess at the other
end... BTW: I think VB does the same thing - beware.
Whew- this is turning into a large message - let's pause and reflect;
1. I don't think you want to use Iexplorer, but I may be wrong - I just did what you want to do differently.
2. There's a bunch of stuff out there that should give you the tools to do the job...
Curl, SSLeay, JavaSSL, and maybe some others.
3. You should be able to contain your project as a simple socket application
using the SSLeay (ie, OpenSSL) DLL, and an executable - forget about
IExplorer.