Winsock exe send html to IE

This is a discussion on Winsock exe send html to IE within the Windows Programming forums, part of the Platform Specific Boards category; Hi, I was just wanted to see if this can be done. I made a winsock server that listens on ...

  1. #1
    Registered User (TNT)'s Avatar
    Join Date
    Aug 2001
    Location
    UK
    Posts
    339

    Winsock exe send html to IE

    Hi,

    I was just wanted to see if this can be done.

    I made a winsock server that listens on port 3550, when somthing connects it sends out some text.

    I did this with IE:

    http://127.0.0.1:3550

    It connected to my server program fine, but then IE just said this page cannot be displayed instead of printing out the text that i sent it.

    Is this possible?

    This is the buffer that i sent to the client:

    char success[] = "Content-type: text/html\n\n<html>\nHello</html>"

    I just want that to be shown in IE when i connect to the server, or is this not possible?

    Thanks
    TNT
    TNT
    You Can Stop Me, But You Cant Stop Us All

  2. #2
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,230
    That should be enough, but I remember there being something about a 3-way handshake....I've got a site in my favorites which describes and gives cod for an HTTP server and client..lemme find it...

    here we go! http://www.vijaymukhi.com/vmis/vmchap4.htm

    just go down to where it has the HTTP server...have fun

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Winsock HTML Page Source Dump...
    By blake_ in forum Networking/Device Communication
    Replies: 36
    Last Post: 11-19-2007, 11:02 PM
  2. Winsock. What's the right way to make a blocking send()?
    By manugarciac in forum Windows Programming
    Replies: 6
    Last Post: 06-18-2007, 10:39 AM
  3. Is there a way to send floats through Winsock?
    By jimboob in forum Networking/Device Communication
    Replies: 2
    Last Post: 09-29-2004, 02:38 AM
  4. Replies: 2
    Last Post: 03-05-2002, 05:52 AM
  5. Replies: 0
    Last Post: 11-16-2001, 12:28 PM

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