Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

http application in java

Status
Not open for further replies.

oceandeep

IS-IT--Management
Jul 6, 2000
69
GR
Hi,

I am writing a simple http server in java, but when I try to send something back to clients(browers), e.g. 200 OK with some numbers in message body, IE has no problem to display them but in firefox, it always pops up a save file window instead of displaying the content directly. Do you have ideas why this happening?

Thanks!
 
Did you read the HTTP RFC - have you implemented the protocol correctly ? Are you setting the headers correctly ? Are you terminating the data with double \r\n characters ?

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
pls take a note that it has no problem with IE. Perhaps I shouldn't post it here as I think it might be related to browers...

Anyway, thanks!
 
Please take note yourself that IE is LESS standards compliant than FireFox - so I refer you to my previous questions !

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
Thx Dian!

and mr sedj, if u ask hv u ever learned computer science, we probably don't even need this forum. ;)
 
oceandeep,

What are you talking about ? You said you had problems implementing the HTTP protocol - my questions were perfectly valid. If you cannot take decent advise, then don't bother posting !

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
oceandeep, sedj's questions are usually damn good ones and worth consideration. If they, in your opinion, don't address your problems, then it's possible that he's misunderstood them, but the onus is then upon you to explain it better.

Tim
---------------------------
"Your morbid fear of losing,
destroys the lives you're using." - Ozzy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top