Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues in Overriding GET request using POST (X-HTTP-METHOD tunneling) #402

Open
ebimohi opened this issue Feb 8, 2021 · 0 comments
Open

Comments

@ebimohi
Copy link

ebimohi commented Feb 8, 2021

I need to use POST request (with X-HTTP-METHOD = GET header) instead of GET, since in some cases the query is too long and you may face to error 414 URI Too Long.

I have used the DF API for this (verb tunneling via POST), but it is odd that it behaves differently and not working properly:
if I send the payload as
{ ids: "228, 229", id_field: "id" }
it won't work, but I realized that if I use the payload as in the following, it works fine!
{ filter: "id IN (228, 229)" }

it seems a bit weird to me and if this tunneling feature is fully compatible with all queries.

thanks for your attention

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant