Internet access application
-
Hi all, My problem is like this Connect and create session to the webserver using https Get local binary data (any file) and upload this binry data on webserver using the above connection. After searching through MSDN i found 'MFC sample TEAR' and its working fine to connect and get data from server. but it works only when direct internet connection is available (no proxy), And it fails for proxy or firewall authetication. also i dont know if this sample supports 'https' or not. i want to establish all these connections through my application my application should check if proxy is enabled or not (i think which can be easily done by getting default browsers settings from registry) and ask user to enter proxy login and password. then i should able to connect internet using these information. can any one suggest solution for my problem? Thanks in advance. sanjay
-
Hi all, My problem is like this Connect and create session to the webserver using https Get local binary data (any file) and upload this binry data on webserver using the above connection. After searching through MSDN i found 'MFC sample TEAR' and its working fine to connect and get data from server. but it works only when direct internet connection is available (no proxy), And it fails for proxy or firewall authetication. also i dont know if this sample supports 'https' or not. i want to establish all these connections through my application my application should check if proxy is enabled or not (i think which can be easily done by getting default browsers settings from registry) and ask user to enter proxy login and password. then i should able to connect internet using these information. can any one suggest solution for my problem? Thanks in advance. sanjay
I don't know the MFC sample TEAR but as my experience shows these examples seldom use ssl connections. If you want to setup a https (ssl) connection take a look at openssl http://www.openssl.org/. A simple connection through a proxy (non-authenticating) is quite easy. First setup a simple connection to the proxy (you need a ssl connection if the proxy is https protected, too) and send a http request as explained in the codeproject article HTTP Tunneling (HTTP Proxy Socket Client). Hope i helped you out. Walter
-
I don't know the MFC sample TEAR but as my experience shows these examples seldom use ssl connections. If you want to setup a https (ssl) connection take a look at openssl http://www.openssl.org/. A simple connection through a proxy (non-authenticating) is quite easy. First setup a simple connection to the proxy (you need a ssl connection if the proxy is https protected, too) and send a http request as explained in the codeproject article HTTP Tunneling (HTTP Proxy Socket Client). Hope i helped you out. Walter
Hi walter, your first point is solution for my question. also tunneling will work fine. but as i said i want the user to go through authentication process of proxy server and not bypass them. user should be prompted to enter proxy user name and password. this will be done by prompting dialog box. then i need to use these info to access internet. Any way your first point is main part of my application, hope i will find answer for my second part of question. Thanks a lot. sanjay