You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Developer <bb...@gmail.com> on 2013/11/13 21:21:17 UTC

How to escape special characters from SOLR response header

I am trying to escape special characters from SOLR response header (to
prevent cross site scripting).

I couldn't find any method in SolrQueryResponse to get just the SOLR
response header. 

Can someone let me know if there is a way to modify the SOLR response
header?





--
View this message in context: http://lucene.472066.n3.nabble.com/How-to-escape-special-characters-from-SOLR-response-header-tp4100772.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: How to escape special characters from SOLR response header

Posted by Erik Hatcher <er...@gmail.com>.
I'm not quite sure what you're trying to do here, can you please elaborate with an example?

But, you can get the response header from a SolrQueryResponse using the getResponseHeader() method.

	Erik

On Nov 13, 2013, at 3:21 PM, Developer <bb...@gmail.com> wrote:

> I am trying to escape special characters from SOLR response header (to
> prevent cross site scripting).
> 
> I couldn't find any method in SolrQueryResponse to get just the SOLR
> response header. 
> 
> Can someone let me know if there is a way to modify the SOLR response
> header?
> 
> 
> 
> 
> 
> --
> View this message in context: http://lucene.472066.n3.nabble.com/How-to-escape-special-characters-from-SOLR-response-header-tp4100772.html
> Sent from the Solr - User mailing list archive at Nabble.com.