Maximum length of parameters in HTTP GET

Started by kkae, July 07, 2017, 09:25:40 PM

Previous topic - Next topic

kkae

Some functions accept a parameter id , which can be a comma seperated liste of numbers.
Are there a restriction in length ?
I' ve read something on the internet that the length of the HTTP GET depends from server/client, read value 2 to 8 kb.

thrinn

Yes, there is a restriction. I can not tell an exact number, but when I tried to send a list with about 5000 ids the request failed.
Thorsten
Win 10 / 64, IMatch 2018, IMA

Mario

See also this: https://stackoverflow.com/questions/2659952/maximum-length-of-http-get-request

I would not create URLs of more than one or two key. There is no need.
If you start sending several kilobyte of ids, use an idlist instead. That's why they exist. Create an idlist, fill it, then use it with whatever request you use.

Also note that you can fold something like 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20 into 1-20, IMWS supports that.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook