Regarding Content-type headers

P

praba kar

Dear All,

I have doubt regarding headers in cgi
programming. If I gives "Content-Type:text/plain" then
I try to print html contents. Is right or wrong after
giving content-type: text/plain?

regards
Prabahar




__________________________________________________________
How much free photo storage do you get? Store your friends 'n family snaps for FREE with Yahoo! Photos http://in.photos.yahoo.com
 
O

Ola Natvig

praba said:
Dear All,

I have doubt regarding headers in cgi
programming. If I gives "Content-Type:text/plain" then
I try to print html contents. Is right or wrong after
giving content-type: text/plain?

regards
Prabahar

It's not wrong, but you won't get the results you want. If you want to
display HTML your should send the content-type: text/html.

regards Ola Natvig
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,990
Messages
2,570,211
Members
46,799
Latest member
Mercury_Dev

Latest Threads

Top