Thread: How do I open a website within C++?

  1. #1
    Registered User f0ul's Avatar
    Join Date
    Nov 2001
    Posts
    37

    Question How do I open a website within C++?

    Total newbie asks:


    I have a network program which I would like to emulate and improve.

    It basically takes a directory from a text file, adds it to domain name and returns the code (200, 301, 401, 500 etc)

    I can do this manually using telnet, but how do I do this using C++?

    i.e.

    telnet (domain name)
    GET HTTP 1.0 (directory)


    returns:

    website


    do I use system calls, or is there a magic C++ code which also does it?
    I don't want to belong to any club that'll accept me as a member!

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Yeah...lookup Winsock (If your on windows that is)......

  3. #3
    Registered User f0ul's Avatar
    Join Date
    Nov 2001
    Posts
    37

    oops . forgot some details..!

    Im writing it in DOS

    I want it to be small enough to keep on a floppy with a number of other programs ..

    arkward or what?
    I don't want to belong to any club that'll accept me as a member!

  4. #4
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    >>arkward or what?

    Yeah...sorry man....Winsock does for me....

    You can still do it in a Dos console.........if thats any help......there's no law that says you must use a GUI.....

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Open Watcom CreateThread pointer parameter problems, m'kay?
    By Mad_guy in forum Windows Programming
    Replies: 2
    Last Post: 11-06-2005, 01:26 AM
  2. Way to get the current open programs displayed?
    By CPPguy1111 in forum C++ Programming
    Replies: 6
    Last Post: 06-22-2005, 12:24 AM
  3. Problems with open and save boxes
    By pinkcheese in forum Windows Programming
    Replies: 3
    Last Post: 05-21-2002, 06:03 PM