This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Security and the fly likes Securing the response from CRLF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "Securing the response from CRLF" Watch "Securing the response from CRLF" New topic

Securing the response from CRLF

ravisha andar
Ranch Hand

Joined: Feb 25, 2011
Posts: 55
Hi All,

If i have
response.setHeader("Content-Type--------- attchmenet filename="+fileName);

How do i secure this from CRLF ?

Some say validate input and encode the url.

How do I Encode the Url...

Please help me understand this better..........

Any help is highly appreciated !!!

I agree. Here's the link:
subject: Securing the response from CRLF
Similar Threads
How do I secure my response header from CRLF
sending image to server using HTTP connection
encoding URL in (href element of) JSP without scriptlets
how to encode the url in strut2
regex question