addHeader « Response « JSP-Servlet Q&A





1. What is the difference between Servlet response methods addHeader and setHeader?    stackoverflow.com

Can I use setHeader to set an new header? Or Do I need to addHeader first, then use setHeader method?