Thread: connecting a page

  1. #1
    Registered User
    Join Date
    Jun 2002
    Posts
    106

    connecting a page

    can some one give me a tutorial addres or code to connect to a web page and retrive the information
    like http://www.somedomain.com/index.html
    to get index.html
    C++ Makes you Feel Better

    "Gravity connot be held reponsible for people falling in love"--Albert Einstein

  2. #2
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    Its going to depend on your OS and compiler. If you're on Windows, lookup Winsock.
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  3. #3
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    One solution is Winsock and HTTP command including /GET.

    Kuphryn

  4. #4
    Registered User
    Join Date
    Jun 2002
    Posts
    106
    normaly i am using linux currently windows is there a standar way to do this in both platforms

  5. #5
    How about socket.h - or just lookup how to create a TCP/IP connection is all you really need. There are 3rd party API's out there to use just for that.

    You might also need an XML parser to properly parse the HTML file.
    My Avatar says: "Stay in School"

    Rocco is the Boy!
    "SHUT YOUR LIPS..."

  6. #6
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    I believe HTTP is platform independent. For Linux, you will use similar socket too tools as to Windows' Winsock. The concept is the same. For example, the I/O model is platform independent.

    Kuphryn

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Page File counter and Private Bytes Counter
    By George2 in forum Tech Board
    Replies: 0
    Last Post: 01-31-2008, 03:17 AM
  2. why page based I/O can improve performance?
    By George2 in forum C Programming
    Replies: 1
    Last Post: 06-12-2006, 07:42 AM
  3. virtual memory
    By sweets in forum C Programming
    Replies: 6
    Last Post: 11-06-2004, 06:55 AM
  4. C Graphics - Page Flipping
    By z0diac in forum C Programming
    Replies: 1
    Last Post: 10-29-2002, 01:21 AM