Click here to Skip to main content
15,908,674 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi...
i want know is their any possibility to open a web using a C language?if possible send me the code please...
Posted
Comments
Ashish Tyagi 40 20-Feb-12 5:01am    
But what exactly you mean by "open a web"? More details for more specific answer.

Your question: is it possible to open a web using C Language?

Answer is: yes. But I wont tell it opening web. I will call it connecting with HTTP server and receive HTTP data

About Sending you Source Code: the answer is no.

But I will give you some suggestion:
1. Learn about Socket.
2. Learn About HTTP Protocol.
 
Share this answer
 
Dear Friend,

If you are thinking of opening a web browser with a particular URL from C language then:-

#include <windows.h>

void main()
{
   ShellExecute(NULL, "open", "http://dreamincode.net",
                NULL, NULL, SW_SHOWNORMAL);
}
 
Share this answer
 
v2

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