Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

C++ content of page and *.txt file


ghost's Avatar
0 0

i'm making a single-use program in c++, that will copy the content of page (keywords) and write it to a file. i have interface, but i didnt find any good tutorial, in which i can find how can my program establish connection to the requested page, and then catch the required data. i'll give you a example: user of program needs all the usernames from php-fusion powered website. so program will connect to required site, and then start trying all the ?id=* from 1 to 10000 and gather usernames, (in standard non-modified php-fusion is username bold at the top of profile table) then write it into text file. but i didnt find any good tutorial about it. please, if someone knows, give me a link to some good tutorial, or a piece of example source code. thanks in advance.

btw… i'm not a spammer


ghost's Avatar
0 0

I am working on something like that, but a bit different on one of my projects. I can help you, but I need to know what OS you're running your scripts PHP/C++ in.


ghost's Avatar
0 0

thanks, i am running my c++ scripts on windows xp sp2 32 bit as i compiler, i used borland c++ 6, but i have some problems with it for now, so i am now using bloodshed dev-cpp


ghost's Avatar
0 0

You can use WinInet to make HTTP connexions or (the method I like more) create a socket, connect it to the address you want, send a HTTP GET query and read the answer (last two steps in the loop) then close the socket.

Search the net, there are a lot of articles about socket programming.


ghost's Avatar
0 0

i've already read about sockets