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 satya swaroop <sa...@gmail.com> on 2011/03/31 14:29:36 UTC

how to set cookie for url requesting in stream_url

Hi All,
        for indexing the documents in the other server i need to include a
cookie value in the url requesting through the stream_url.
can anybody tell me how to include the cookie in the url???
have anybody done this type??? or if there are any suggestions please tell
me???

ex:
http://localhost:8456/solr/update/extract?stream_url=remote_server_url&literal.id=13748
;

here i need to include a cookie value while requesting for the
remote_server_url.


Regards,
satya

Re: how to set cookie for url requesting in stream_url

Posted by satya swaroop <sa...@gmail.com>.
Hi All,
     I was able to set the cookie value to the Stream_url connection, i was
able to pass the cookie value upto contentstreamBase.URLStream class and i
added
conn.setRequestProperty("Cookie",cookie[0].name"="cookie[0].value) in the
connection setup.. and it is working fine now...

Regards,
satya

Fwd: how to set cookie for url requesting in stream_url

Posted by satya swaroop <sa...@gmail.com>.
HI Markus,
           I am using solr branch_3x, in tomcat web server
Regards,
satya

Re: how to set cookie for url requesting in stream_url

Posted by Markus Jelsma <ma...@openindex.io>.
That depends on what you're using. So, what are you using?

On Thursday 31 March 2011 14:29:36 satya swaroop wrote:
> Hi All,
>         for indexing the documents in the other server i need to include a
> cookie value in the url requesting through the stream_url.
> can anybody tell me how to include the cookie in the url???
> have anybody done this type??? or if there are any suggestions please tell
> me???
> 
> ex:
> http://localhost:8456/solr/update/extract?stream_url=remote_server_url&lite
> ral.id=13748 ;
> 
> here i need to include a cookie value while requesting for the
> remote_server_url.
> 
> 
> Regards,
> satya

-- 
Markus Jelsma - CTO - Openindex
http://www.linkedin.com/in/markus17
050-8536620 / 06-50258350