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. Having the software communicate with a website

Having the software communicate with a website

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorialquestion
5 Posts 5 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.
  • D Offline
    D Offline
    DanYELL
    wrote on last edited by
    #1

    There are software products, in visual c++, where the software can fill out information on a webpage and click submit. How does this work? Is there a sample project anywhere that shows how to do this? Sincerely, Danielle Brina (an overworked graduate student)

    A B _ 3 Replies Last reply
    0
    • D DanYELL

      There are software products, in visual c++, where the software can fill out information on a webpage and click submit. How does this work? Is there a sample project anywhere that shows how to do this? Sincerely, Danielle Brina (an overworked graduate student)

      A Offline
      A Offline
      Abhi Lahare
      wrote on last edited by
      #2

      1 IWebBrowser2 is a good starting point. 2. You need to have a complete DOM of webpage to fill out the information of the page/ 3. Somehow figure out how to stimulate the click on the submit button. In Addition,You may need a browser plug a (ActiveX DLL) in form of BHO.

      modified on Monday, December 28, 2009 5:02 PM

      1 Reply Last reply
      0
      • D DanYELL

        There are software products, in visual c++, where the software can fill out information on a webpage and click submit. How does this work? Is there a sample project anywhere that shows how to do this? Sincerely, Danielle Brina (an overworked graduate student)

        B Offline
        B Offline
        bob16972
        wrote on last edited by
        #3

        This used to be pretty simple (using IWebBrowser2::Navigate) until IE "safe mode" came out. This internet explorer option appears on Vista (and I'm assuming later OS but I have not confirmed that) and seems to be enabled by default. If safe mode is enabled, you will effectively get cut off from the browser instance and your attempt to "post" data gets lost in a singularity or evaporate. I spent some time looking for a workaround but it seems hopeless. Yet another lashing from the security folks. :((

        1 Reply Last reply
        0
        • D DanYELL

          There are software products, in visual c++, where the software can fill out information on a webpage and click submit. How does this work? Is there a sample project anywhere that shows how to do this? Sincerely, Danielle Brina (an overworked graduate student)

          _ Offline
          _ Offline
          _Superman_
          wrote on last edited by
          #4

          This is basically done using a browser extension. The web browser loads your extension and passes in a reference to the browser control and also fires events when a web page finishes loading so that you can get access to the web page and manipulate its contents. You will need different extensions for different browsers like IE, firefox etc. since their architectures are different.

          «_Superman_» I love work. It gives me something to do between weekends.
          Microsoft MVP (Visual C++)

          R 1 Reply Last reply
          0
          • _ _Superman_

            This is basically done using a browser extension. The web browser loads your extension and passes in a reference to the browser control and also fires events when a web page finishes loading so that you can get access to the web page and manipulate its contents. You will need different extensions for different browsers like IE, firefox etc. since their architectures are different.

            «_Superman_» I love work. It gives me something to do between weekends.
            Microsoft MVP (Visual C++)

            R Offline
            R Offline
            raja jamwal
            wrote on last edited by
            #5

            Well are you asking for automating clicks and submitions, means doing repeating things. then you can simply go for keyboard and mouse event, just search google with msdn in front then there's is a different interesting way too. simply discover how the submitions are being submitted, get tamper data plugin for firefox, check out what parameters are being submitted in HTTP request, and emulate same, many submitions are based around method get, so you simply need to submit parameters in url or otherwise if the submitions are based on method post, then you need to write and send the HTTP request body too. for any way you choose you can go for WININET library to do http work..... that way you'll know more what u r doing amd have much control ovet it.

            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