I want to get the HTML source code off of the internet through VC++. Anyone know how to do this....
All I want is the text file you get when u right click on a web page and click view source but I need to have VC++ go out and grab it.
Brett
I want to get the HTML source code off of the internet through VC++. Anyone know how to do this....
All I want is the text file you get when u right click on a web page and click view source but I need to have VC++ go out and grab it.
Brett
Ha Ha Ha Ha Ha Ha Ha
Code:#include <cmath> #include <complex> bool euler_flip(bool value) { return std::pow ( std::complex<float>(std::exp(1.0)), std::complex<float>(0, 1) * std::complex<float>(std::atan(1.0) *(1 << (value + 2))) ).real() < 0; }
Why are u laughing?
snicker... um.. may i ask why you want to do such a thing?
What is C++?
well I a list of web pages with customer information on them and I wish to go through each list and copy the information into a database.
err I have a list of web sites
but why with MVC++?
Just make some folders and organize them
Im still not exactly sure what your tryin to accomplish
What is C++?
there are about 3000 pages and none of them are on my computer... .i need to get the source code for the web pages and then read through them with vc++.. I do not know any other way to get the web pages.
are you just wanting source or get source and make the source turn into a webpage?
What is C++?
i just want the source. I will remove all the html tags once i get it.
so you want text only versions of the web pages?
You could just copy the source off of the web page and save it in anotepad...
What is C++?
3000 pages man i want VC to do that for me.... dont u know the command in c?
oh dear...
you mean how would you make a program to do that?
I have no idea....
see i thought you wanted to look at the source in the MVC++ ide..
What is C++?
Ok, I'm not sure if I've understood your problem correctly. Probably this is what you are trying to do:
You want to fetch the HTML source of some webpages hosted onto a remote machine.
In this case, I'd open a socket(), connect() it to the remote machine's web-page-server's port. Then, in a loop: send() the GET request for the pages, do a recv(). So, I'll be having each page received in a buffer.
This is the regular C approach. Since you have the option of using C++, you could use customised classes for doing this. I don't know much about them.
Hope this helps.
<Signature
name="Ruchikar"
quote="discussions are forgotten, only code remains"/>