Thread: requesting html source from a server

  1. #1
    template<typename T> threahdead's Avatar
    Join Date
    Sep 2002
    Posts
    214

    requesting html source from a server

    hi.

    i have a problem with some code i am working on.
    i connect to a webserver on port 80.

    when connected i send a message like that to the server:
    "GET /\n".

    then i receive the response back into a buffer.
    with the GET request i want to receive the html source of the page.
    but i only get the server running and the remaining meta informations.

    how can i obtain the html source via a GET request?

    thanks
    Last edited by threahdead; 08-01-2003 at 08:03 AM.

  2. #2
    template<typename T> threahdead's Avatar
    Join Date
    Sep 2002
    Posts
    214
    i figured it out.
    thanks

    the HTTP/1.1 was missing.

  3. #3
    Registered User
    Join Date
    Jan 2003
    Posts
    88
    also HTTP requires two newlines

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Please Help - C code creates dynamic HTML
    By Christie2008 in forum C Programming
    Replies: 19
    Last Post: 04-02-2008, 07:36 PM
  2. server client application - (i really need your help)
    By sarahnetworking in forum C Programming
    Replies: 3
    Last Post: 03-01-2008, 10:54 PM
  3. Server Architecture
    By coder8137 in forum Networking/Device Communication
    Replies: 2
    Last Post: 01-29-2008, 11:21 PM
  4. IE 6 status bar
    By DavidP in forum Tech Board
    Replies: 15
    Last Post: 10-23-2002, 05:31 PM
  5. socket question
    By Unregistered in forum C Programming
    Replies: 3
    Last Post: 07-19-2002, 01:54 PM