Thread: Open socket and read from web page

  1. #1
    Registered User
    Join Date
    Nov 2010

    Open socket and read from web page

    Hey guys,

    Does anyone have a simple program which can be compiled on visual studio 2010 for windows that opens a socket to a given webpage and allows you to read the html just as you would with a local file? I don't want a html parser, I just wish to be able to place a pointer on the start of the webpage and read.

    I have tried libcurl and I just cannot get it to compile and I do not understand enough about networking to use winsock. I would really appreciate some help.


    Will Edwards

  2. #2
    Join Date
    Dec 2007

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    Nice - no need to clutter up the web with repeated answers here then.

    silversurfer515, in case you're wondering, you did NOT choose carefully
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Why the local socket program occur core dump?
    By chenayang in forum Linux Programming
    Replies: 16
    Last Post: 08-16-2010, 08:39 AM
  2. polling for socket Read.
    By WDT in forum C# Programming
    Replies: 2
    Last Post: 08-08-2009, 03:52 PM
  3. parse doubles from socket read?
    By willy in forum C Programming
    Replies: 4
    Last Post: 05-28-2008, 05:32 AM
  4. Socket web browser
    By digitaltsai in forum Networking/Device Communication
    Replies: 17
    Last Post: 10-09-2005, 08:20 AM
  5. socket newbie, losing a few chars from server to client
    By registering in forum Linux Programming
    Replies: 2
    Last Post: 06-07-2003, 11:48 AM