Open socket and read from web page

This is a discussion on Open socket and read from web page within the C++ Programming forums, part of the General Programming Boards category; Hey guys, Does anyone have a simple program which can be compiled on visual studio 2010 for windows that opens ...

  1. #1
    Registered User
    Join Date
    Nov 2010
    Posts
    1

    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.

    thanks

    Will Edwards

  2. #2
    a_capitalist_story
    Join Date
    Dec 2007
    Posts
    2,650

  3. #3
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,532
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

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

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