This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan 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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "Securing the response from CRLF" Watch "Securing the response from CRLF" New topic
Author

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 !!!

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