Click here to Skip to main content
12,889,409 members (44,663 online)
Rate this:
Please Sign up or sign in to vote.
I want to input a large amount of data into a public inquiry website by VC6.0. The main work is on the home page, written with HTML, of the website. There are 2 text boxes where user names and codes inputted in and an OK button. I have many user names and codes but it's very tired input them one by one.

Now I want to write a VC program to realize automatic inputting. The problem on data inputted is that the data is made up by 10 digits including 5 constant and 5 variable. I wanna input a data with changing 5 variables at set intervals, for example 0.5 second. After inputting a data, the target website will pop up a webpage and display query results. Now I wanna manually record the results.

If you have good ideas please teach me, thank you sincerely.
Posted 11-Jan-13 1:29am
ryanb31 11-Jan-13 7:50am
This sounds like a spam bot of sorts. What do you have so far?
Sheikh Muhammad Haris 11-Jan-13 8:24am
Ask specifically what do you want to do?
Sergey Alexandrovich Kryukov 11-Jan-13 12:10pm
Unfortunately, I could be, but I hope this is something different. There are many cases when this is desirable. Sometimes you need to deal with stupid sites, for example, to follow some idiotic bureaucratic — I face with such cases once in a while.

Let's ask OP to guarantee that it won't be used for spamming or other malicious activity.

Anyway, I decided to answer, please see.

Sergey Alexandrovich Kryukov 11-Jan-13 12:10pm
I think this is pretty much clear. Please see my comment above and my answer.
tomarrow 11-Jan-13 19:55pm
It's not a spam, just for quirying scores. Now I just have data and development tools. Thanks for help
tomarrow 11-Jan-13 20:01pm
I promise I won't be used for spamming or other malicious activity, just for quiry scores. Just as what you said that the information I want,should be open to the public, is difficult to achieve now by idiotic bureaucratic. I hope you can help me
tomarrow 11-Jan-13 20:03pm
I hope you can tell me the resolvent, for example sopme articles you write on codeproject to solve my problem
Sergey Alexandrovich Kryukov 11-Jan-13 20:06pm
Thank you for your justification.

I'm pretty much sure the references I gave you should be enough... Is it not?
As to my other posts, I do have some more on the topic, but they reference only .NET API or code.

tomarrow 11-Jan-13 20:06pm
I want to insert my data into a quiry webpage written by html to achieve results automatically and fast. It's best to automatically keep results in text or excel
tomarrow 11-Jan-13 20:18pm
I just see your solution that was very clearly. Thank you for your help sincerely
tomarrow 11-Jan-13 20:26pm
a exact case is best
Sergey Alexandrovich Kryukov 11-Jan-13 20:34pm
You are welcome. Will you then accept it formally (green button)? It won't limit your chances to get other answers from other members... — thanks.
tomarrow 14-Jan-13 23:27pm
Please continue your surggest

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

This is not about HTML at all. Apparently, as this is a Web site, you have to follow HTTP protocol. You need to send HTTP request in exact same way you browser does, most likely using "POST" request method. This is not a problem, because you can always see what a Web page does (what is it, an HTML form or Ajax? must be either one or another).

One of the classes you can possibly use is CInternetSession, according to this answer:[^].

See also:[^].

Hope it was available and worked in VC 6.0, too :-).

Alternatively, you can use the wrapper provided in this CodeProject article: A Fully Featured Windows HTTP Wrapper in C++[^].


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170424.1 | Last Updated 11 Jan 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100