Boyet, Adam C wrote:
> 
> Is it possible to use Net::SSLeay and OpenSSL to make a SSL request through
> a proxy or firewall.
> 

Yes, it's possible. You must add some short code before SSL_Accept to
make connection through proxy.
If you use HTTP proxy, you may try something like this pseudocode:

SOCKET s = connect("proxy_address:proxy_port");

// write command for proxy server
write(s,"CONNECT remote_host_address:port HTTP/1.0\r\n");
write(s,"\r\n");

// read response from proxy
read(s,buffer_for_response);

// check returned HTTP status code
// read until you get CRLF CRLF (double CRLF)

// from this point it's connected to the remote host
// start SSL in normal way
SSL_set_fd(s);
SSL_Accept();
...

Michal Otoupalik ([EMAIL PROTECTED])

application/ms-tnef

Reply via email to