C++ capabilities

Discussion in 'C++' started by bdy120602, Apr 1, 2008.

  1. bdy120602

    bdy120602 Guest


    I would like to develop a client-side application that:

    * tests web forms (fill-in forms)
    o this test feature of the application would fill in a
    web form with random data and submit the data,
    recording whether or not the submission was
    * tests chat features
    o this test feature of the application would attempt to
    open a chat feature on a webpage, for example, a
    chat feature on the customer support section of a
    website. Once a response is received, the
    component of this client-side application would
    disconnect, logging the results;
    * monitors web links
    o this feature of the application would monitor all the
    links on the site and return results of any pages
    that were changed;
    * scans a site for spelling mistakes;
    * tests e-mail addresses
    o ensures that mailto links launch an e-mail client and
    populate the "to" field with a properly formed e-
    mail address;
    * scans a site for specific keywords, which would be entered via a
    form in said application;
    * scans a site for image file formats, recording the links of said
    image files.

    First, I would like to know if C++ can do all this; or if there is
    another language that would be able to do all this that is less
    complicated, but capable of client-side operation.

    Also, I'm an extremely stubborn person, so please don't waste your
    time or bits trying to convince me that this is not a task to be taken
    by a C++ novice, which I most certainly am. (I'm sure you can work
    arrogance in there as a reson why I think I can do this;basically,
    humor me.)

    If C++ can accomplish such things, please recommend a text to help me
    get started.


    bdy120602, Apr 1, 2008
    1. Advertisements

  2. Yes and no. There are no mechanisms in the language itself to do
    "test web forms", for example, but since web forms are usually just
    information given to your program via standard input, you should
    be able to do all the processing you need. As to other things,
    there are libraries to help you with that. C++ is fully capable
    of utilizing those libraries, of course.
    If you're so hell-bent on using C++, go for it. Find a copy of
    and read "Accelerated C++". You will need much more knowledge
    than contained in that one book, so your next book will probably
    be one with "Dynamic HTML" in its title.

    Of course, most of what you are talking about is already covered
    in some server-side development products like Websphere, probably.
    You can program them using their own language (whatever that is)
    or using some common programming language like Visual Basic, most
    likely. Unfortunately this is the wrong place to ask about them.

    Victor Bazarov, Apr 1, 2008
    1. Advertisements

  3. * :
    Some of this smells of bad analysis. For example, there are a great many
    different chat features, and monitoring web pages for changes has very high
    overhead. And, for example, in order to scan a web site for keywords, just use

    As a start you could implement your own minimal version of wget.

    See where that gets you.

    You'd be better off using e.g. PHP for this.

    PHP uses modules that are implemented in C and/or C++.

    Cheers, & hth.,

    - Alf
    Alf P. Steinbach, Apr 1, 2008
  4. bdy120602

    lbonafide Guest

    C++ is a general purpose programming language. It appears you'll need
    some kind of HTTP libraries or have to roll your own to do what you're
    wanting to do. You may want to consider Java for this task.
    lbonafide, Apr 1, 2008
  5. bdy120602

    bdy120602 Guest

    Thanks for the quick and loaded response.

    No, I'm not hell bent on C++, but I am hell bent on using a language
    that can acheive all of the aforementioned, or, at least, access the
    languages that can do the aforementioned.

    When you speak of Websphere, you're referring to the IBM product,
    correct? If it's server-side, then it's not an option for me.
    bdy120602, Apr 1, 2008
  6. Sorry, I misread. Yes, you're right. You're talking about client
    side. Consider looking into ways to program ("drive") the web
    browser to do those things for you. Most of them are programmable
    (and can be objects by themselves). Of course, HTTP communication
    is nowadays relatively well specified, and there are numerous
    libraries to perform HTTP requests and parse the responses. The
    best place to start asking further questions might be the forum
    dedicated to your OS.

    Victor Bazarov, Apr 1, 2008
  7. bdy120602

    bdy120602 Guest

    Thanks fore the quick response.

    Can PHP operate client side?
    Also, Rel Link Checker Lite conatins a feature that monitors Web pages
    for modifications, but I'm not sure how; I know it's not comparison,
    which I think is why you referred to a lot of overhead.

    bdy120602, Apr 1, 2008
  8. bdy120602

    bdy120602 Guest

    I see. OK, thanks. That was very helpful; much appreciated.
    bdy120602, Apr 1, 2008
  9. bdy120602

    lbonafide Guest

    lbonafide, Apr 1, 2008
  10. bdy120602

    Brian Tyler Guest

    Can PHP operate client side?
    PHP usually runs on top of a webserver like Apache, but it doesn't need
    to run on the same server as the website you want to skim. So you could
    write a web application that could be hosted locally for example. I know
    that it can be installed independently on a Linux machine (probably
    windows) but I don't have any experience of that. Anyway I think it is a
    viable client-side solution.

    The nice thing about PHP from your point of view is it already "knows"
    about internet technology, so traversing websites is fairly straight
    forward. You also have very easy interaction with a MYSQL database for
    storing all of your information.

    Someone else has mentioned Python, which may do this even better, I've
    never tried it. Either way, you don't have anything to loose by checking
    out these options. I have done a fair bit of C++ and PHP coding and I
    know which one I would look at first.

    Brian Tyler, Apr 1, 2008
  11. If you're like me, and you're thinking these requirements are a bit off the
    map, note the date...

    Sherman Pendley, Apr 1, 2008
  12. bdy120602

    Ian Collins Guest

    03:30 on the second of April?
    Ian Collins, Apr 1, 2008
  13. Date: Tue, 1 Apr 2008 07:30:44 -0700 (PDT)
    Erik Wikström, Apr 1, 2008
  14. bdy120602

    bdy120602 Guest

    Why is the date of importance?
    bdy120602, Apr 9, 2008
  15. bdy120602

    gerfund Guest

    gerfund, Apr 9, 2008
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.