module.
https://requests.readthedocs.io/en/latest/
r = requests.post('http://localhost:8983/solr/films/query',
data={"query":"*:*"})
print(r.json())
This should set all the appropriate headers as well.
-Andrew
> On 17 Dec 2024, at 10:53, Macfarlane, Andrew
> wrote:
Hi
I'm trying to connect with a SOLR server, using the POST methods in python, but
I'm getting an error.
This is the code (full file is attached):
#Form the URL
searchURL = 'http://localhost:8983/solr/films/query'
querytext = {"json":{"query":"shane"}}
#querytext = {"query":"*:*"}
#form the