Python external gRPC request using wrong protocal

Viewed 30

I am writing an API for a website that involves making a request to their API. The link looks like this - https://search.api.company.com/company.content.search.v1.Search/Search. The data looks very weird when viewed in dev tools shows a very odd payload being sent- The payload, as well as a very odd payload being received. My current python code is this

import requests
r = requests.post("https://search.api.company.com/company.content.search.v1.Search/Search")
print(r.text)

And my error is this - gRPC requires HTTP/2

Is there any way to fix this?

0 Answers
Related