Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Using POST instead of GET for long queries #595

Open
lucasvanhalst opened this issue Jun 20, 2018 · 1 comment · May be fixed by #882
Open

Using POST instead of GET for long queries #595

lucasvanhalst opened this issue Jun 20, 2018 · 1 comment · May be fixed by #882

Comments

@lucasvanhalst
Copy link

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
    )
@xginn8
Copy link
Collaborator

xginn8 commented Jul 4, 2018

@lucasvanhalst are you willing to contributing a patch for this request?

@yeyuqiu yeyuqiu linked a pull request Mar 29, 2021 that will close this issue
2 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants