Question about HTTP Protocol

Started by
4 comments, last by daerid 21 years, 10 months ago
Is this correct HTTP output?

HTML/1.0 200 OK
Content-Type: text/html
Content-Length: 135




 
  This is a test
 


  
    Testing.
  
  
  
    WTF
  
</body>
</html>
 
If so, why does my browser still show my farking headers?
daerid@gmail.com
Advertisement
RFC 1945.

The header should be HTTP/1.0 not HTML/1.0

Documents [ GDNet | MSDN | STL | OpenGL | Formats | RTFM | Asking Smart Questions ]
C++ Stuff [ MinGW | Loki | SDL | Boost. | STLport | FLTK | ACCU Recommended Books ]


[edited by - Fruny on June 6, 2002 2:47:21 PM]
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan
"HTTP/1.0 200 OK" will work "HTML/1.0 200 OK" will not. As you''re replying with a HTTP header, not a HTML?! header. Strike one to the silly-typo error.
Don''t forget RFC 2616 [HTTP/1.1]
"There is no reason good should not triumph at least as often as evil. The triumph of anything is a matter of organization. If there are such things as angels, I hope that they're organized along the lines of the mafia." -Kurt Vonnegut
HOLY FUCKING HYPERTEXT, BATMAN!

God do I feel like an idiot.
daerid@gmail.com
quote:Original post by daerid
HOLY FUCKING HYPERTEXT, BATMAN!

God do I feel like an idiot.


watch the language dude...





"DaHjajmajQa''jajHeghmeH!"

Cyberdrek
danielc@iquebec.com
Founder
Laval Linux

/(bb|[^b]{2})/ that is the Question -- ThinkGeek.com
Hash Bang Slash bin Slash Bash -- #!/bin/bash
[Cyberdrek | ]

This topic is closed to new replies.

Advertisement