theorical question

This is a discussion on theorical question within the C++ Programming forums, part of the General Programming Boards category; if i want to get web pages from web sites let say www.cboard.cprogramming.com/index.html do i need to write a small ...

  1. #1
    Registered User devil@work's Avatar
    Join Date
    Mar 2003
    Posts
    33

    theorical question

    if i want to get web pages from web sites let say
    www.cboard.cprogramming.com/index.html
    do i need to write a small web browser thing to get the html code of the site if so anyone point me to some directions to get started like socket programming tutorials on linux

  2. #2
    Registered User
    Join Date
    Oct 2001
    Posts
    68
    you have to write a HTTP Server, to do that....


    Thanks

  3. #3
    jasondoucette.com JasonD's Avatar
    Join Date
    Mar 2003
    Posts
    278
    Try taking a look at the 'Tear' program that comes with MSVC++, if you have this compiler. It contains the code to do exactly what you wish.

    I found the sample on msdn.com:
    Tear Sample from msdn.com

    There are probably easier ways to accomplish this using other libraries, I am sure, though...

  4. #4
    Registered User devil@work's Avatar
    Join Date
    Mar 2003
    Posts
    33
    i am not using windows and i do not want to serve thing i just want to connect and get pages like a browser

  5. #5
    Geo Geo Geo-Fry
    Join Date
    Feb 2003
    Posts
    116
    if you dont mind my asking, just what is a "theorical" question?
    it wouldnt happen to be anything like a theoretical question would it?
    i know that i dont have perfect grammar, and in case you havent noticed, i rarely use capitals, but check your spelling, (www.dictionary.com is a website) or at minimum spell it in some way the resembles the word you are trying to spell.
    theorical - the-oh-ri-cal
    theoretical - the-oh-ret-ic-al
    thats a fairly big difference
    "You can lead a man to Congress, but you can't make him think."
    "The Grand Old Duke of York
    -He had ten thousand men.
    -His case comes up next week."
    "Roses are red, violets are blue, I'm schizophrenic, and so am I."
    "A computer once beat me at chess, but it was no match for me at kick boxing."
    "More and more of our imports are coming from overseas."
    --George W. Bush
    "If it weren't for electricity, we'd all be wacthing TV by candlelight."
    --George W. Bush

  6. #6
    I lurk
    Join Date
    Aug 2002
    Posts
    1,361

    Re: theorical question

    Originally posted by devil@work
    if i want to get web pages from web sites let say
    www.cboard.cprogramming.com/index.html
    do i need to write a small web browser thing to get the html code of the site if so anyone point me to some directions to get started like socket programming tutorials on linux
    Hmm, did someone dig up an old topic? I remember helping you with a GET request earlier... this must have been posted beforehand.

  7. #7
    Registered User devil@work's Avatar
    Join Date
    Mar 2003
    Posts
    33
    i post this before posting the one with get

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Alice....
    By Lurker in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 06-20-2005, 03:51 PM
  2. Debugging question
    By o_0 in forum C Programming
    Replies: 9
    Last Post: 10-10-2004, 06:51 PM
  3. Question about pointers #2
    By maxhavoc in forum C++ Programming
    Replies: 28
    Last Post: 06-21-2004, 01:52 PM
  4. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 10:47 PM
  5. Question, question!
    By oskilian in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 12-24-2001, 01:47 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21