Click here to Skip to main content
15,880,427 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have learned base C language, and some Windows API in C.
Now I reading the book: <tcp ip="" sockets="" in="" c="">(Macheal J. Donahoo).
I want to know what is my next book if I want to write a small software to simulate some function of web browser(no need GUI, console function is OK). For example, I want my software can connect to "www.google.com" and search some key word(passed by the software user) and simulate the action "click" search button in IE browser.

Can anyone give me some advice (and maybe some reference, I will appreciate that!) ?

(PS: My English is not so good. If you don't understand what I mean, please let me know. I will try my best to express it using examples)
Posted

What you are asking for would be much easier to write using .NET and C#. The .NET framework contains support classes for many tasks that involve internet access. If you wish to learn C# then you can start with .NET Book Zero by Charles Petzold[^]. If you want to do it in C/C++ then you will have much more code to write for yourself.
 
Share this answer
 
Considering that you don't want any graphical interface, but simply try to interrogate an http server and get the answer first of all you have to learn the http protocol RFC2616[^] and try to issue a 'GET' to retrieve the an answer. You can use what you learned on sockets to build the interrogation.
Then if you want to go alittle bit forward and try to graphically show some pages there are many samples on the net coded in whatever language you likHere you can try This article in C++[^].
 
Share this answer
 
v2
Comments
virusx1984 12-Mar-15 21:51pm    
thank you for giving me the direction

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900