Stream: implementers
Topic: Handling of HTTP Prefer
Alexander Henket (Nov 14 2019 at 11:57):
The search specification says:
_Servers SHOULD honor the client's request, but are not required to do so._
Does that statement include the option for a server to ignore HTTP Header Prefer: handling=strict? That would be a problem for the client as then it cannot count on its request being interpreted as intended.
Grahame Grieve (Nov 14 2019 at 12:08):
right. Postels rules apply here
Alexander Henket (Nov 14 2019 at 12:10):
Be liberal in what you accept, and conservative in what you send.?
So if I query a server and send "Prefer: handling=strict", and get data, I might still find that it did not quite match my query because some parts were ignored?
Alexander Henket (Nov 14 2019 at 12:12):
Or do you mean that in constructing my query I should have carefully examined the ConformanceStatement so I would never send anything that the server would not support thereby avoiding the issue?
Grahame Grieve (Nov 14 2019 at 12:12):
yes. you could at least check. I don't think we can get away with making it tighter
Grahame Grieve (Nov 14 2019 at 12:12):
an the conformance statement does't say anything about this, i think
Alexander Henket (Nov 14 2019 at 12:14):
So ... presumably I could mitigate this by requiring support for HTTP Prefer, not leaving it up to chance.
Grahame Grieve (Nov 14 2019 at 12:14):
well...maybe you could do that, even if we can't in the standard? I don't have a strong feeling on this
Last updated: Apr 12 2022 at 19:14 UTC