LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-22-2010, 07:15 AM   #1
ShishioMakoto
LQ Newbie
 
Registered: Nov 2010
Posts: 1

Rep: Reputation: 0
Socket Programming to Open/Go To Web Sites


Hello everyone! Does anyone here know how to implement socket programming in C programming language to go to web sites? My desired program should look like this: the program asks for an integer input from the user and depending on the input number, the program invokes and tries to connect to a specific website. For example, if the input is 1, the program will try to connect to htttp://www.yahoo.com and if the input is 2, the program will try to connect to http://www.google.com. The websites will be pre-determined, meaning if the input is 1, the program will go to www.yahoo.com only, the program shouldn't try to connect to random websites. By the way, I'm using Linux as my operating system. Any concepts/strategies/links to tutorials/sample codes will be greatly appreciated. Thank you.

Last edited by ShishioMakoto; 11-22-2010 at 07:17 AM. Reason: incomplete information
 
Old 11-22-2010, 07:21 AM   #2
JohnGraham
Member
 
Registered: Oct 2009
Posts: 467

Rep: Reputation: 139Reputation: 139
For network programming in general, try this tutorial. If you're wanting to use the HTTP protocol as opposed to doing all the work yourself, see libcurl.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
socket programming with web browser jayasekar Linux - Software 2 01-20-2010 03:56 AM
LXer: Even Faster Web Sites: Performance Best Practices for Web Developers LXer Syndicated Linux News 0 07-07-2009 10:21 PM
Client cannot open few https://.. sites i.e. secure sites rajeshghy Linux - General 1 11-02-2006 06:30 AM
Tools for developing C# web service and web sites in Linux woodbase Linux - Software 3 08-10-2006 01:28 PM
Awesome programming and open source sites WindowsBurner Programming 3 05-20-2004 08:59 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration