This repository was archived by the owner on Oct 29, 2024. It is now read-only.
This repository was archived by the owner on Oct 29, 2024. It is now read-only.
Using POST instead of GET for long queries #595
Open
Description
On Google Appengine, there's a 2KB limit for urls. So if you do multiple queries in one api call, that 2kb is exceeded pretty easily.
It would be nice if we could specify the http method in the query
method to avoid that limit.
for now, we've patched the library in our project to replace this
https://github.com/influxdata/influxdb-python/blob/master/influxdb/client.py#L404-L410
with:
response = self.request(
url="query",
method='POST',
params=None,
data=urllib.urlencode(params),
headers={'Content-Type': 'application/x-www-form-urlencoded'},
expected_response_code=expected_response_code
)
Metadata
Metadata
Assignees
Labels
No labels