← Back to context

Comment by layer8

1 day ago

Query parameters are length-limited, because HTTP URIs are: https://www.rfc-editor.org/info/rfc9110/#section-4.1-5. There is no expectation for arbitrarily long HTTP URLs to be functioning.

Your link doesn't say URIs are length-limited

  • I'm guessing you never hit this issue then, but it's a real issue. Whether or not it's in the RFC as a hard limit it doesn't matter, no HTTP server will allow unlimited sized URIs.

    You simply can't base64 large payloads and you're stuck with workarounds.

    • You are guessing wrong. Thanks, I know specific implementation will come with their limits. This will equally apply to QUERY body size and caching strategy.

      Are we seriously ok with linking the RFC as source while providing a statement that doesn't match? RFC does matter.

      2 replies →

  • They are in the sense that the recommended supported length is only 8000 bytes. There are no such specified length recommendations for HTTP body size.

    • Recommended supported length is at least 8k.

      Of course I don't advocate oversize URLs. That's a point of RFC10008.

      Let's say we build a service for image transformation or image information extraction. Get isn't practical. QUERY with image as body could be a valid usage, regardless of caching. It conveys information that request is idempotent and can be retried with no impact on data, contrary to POST. If your http client is configured to support this, it can potentially improve reliability.