Skip to main content
gamedev.net
🔒 Locked

Question about HTTP Protocol

Started by daerid Jun 6, 2002 at 1:35 PM 4 replies 200+ views
Original Post
daerid
daerid
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
Fruny
Fruny
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
Zanthos
Zanthos
"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.
WayfarerX
WayfarerX
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
daerid
daerid
HOLY FUCKING HYPERTEXT, BATMAN!

God do I feel like an idiot.
daerid@gmail.com
Cyberdrek
Cyberdrek
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 | ]

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.