Problem opening Solr *.jsp pages with urllib2.urlopen.

Posted by nestling on Stack Overflow See other posts from Stack Overflow or by nestling
Published on 2010-06-16T07:07:32Z Indexed on 2010/06/16 7:12 UTC
Read the original article Hit count: 216

Filed under:
|

I'm trying to open a page at http://localhost:8983/solr/admin/stats.jsp but urllib2.urlopen returns a blank string. It works fine for solr/ and solr/admin, but for all the pages above /solr/admin/ I get nothing but a blank string.

76]: t = urllib2.urlopen('http://localhost:8983/solr/admin/stats.jsp')

77]: s = t.read()

78]: s
78]:

79]: type(s)
79]: <type 'str'>

80]: urllib2.urlopen('http://localhost:8983/solr/admin/registry.jsp').read()
80]:

In [84]: urllib2.urlopen('http://localhost:8983/solr/admin/schema.jsp').read()
Out[84]:

I know this isn't a problem with urllib2, but beyond that I am at a loss. I wish solr (or jetty) had an easy to get to log file, so that perhaps it could tell me its side of the story.

© Stack Overflow or respective owner

Related posts about python

Related posts about solr