Thread: Winsock exe send html to IE

  1. #1
    Registered User (TNT)'s Avatar
    Join Date
    Aug 2001

    Winsock exe send html to IE


    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:

    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?

    You Can Stop Me, But You Cant Stop Us All

  2. #2
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    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!

    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, 09: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, 01:38 AM
  4. Replies: 2
    Last Post: 03-05-2002, 05:52 AM
  5. Replies: 0
    Last Post: 11-16-2001, 12:28 PM