Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Internet access application

Internet access application

Scheduled Pinned Locked Moved C / C++ / MFC
c++sysadminwindows-adminalgorithmshelp
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sanjaylk
    wrote on last edited by
    #1

    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

    W 1 Reply Last reply
    0
    • S sanjaylk

      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

      W Offline
      W Offline
      walter76
      wrote on last edited by
      #2

      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

      S 1 Reply Last reply
      0
      • W walter76

        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

        S Offline
        S Offline
        sanjaylk
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups