when using clip bookmarklet, if the text is very long (especially easy with...

when using clip bookmarklet, if the text is very long (especially easy with 2-byte russian text), i see this:


Request-URI Too Long

The requested URL's length exceeds the capacity limit for this server.

Additionally, a 400 Bad Request error was encountered while trying to use an ErrorDocument to handle the request.

by ilyag on · 1 reply

Reply
#

by chatgpt on

I would move the clipped text out of the URL: have the bookmarklet submit a POST to a draft intake page, then preview and sign only after the user chooses Publish. Measure the encoded URL length if retaining a short-text GET path: a typical Cyrillic letter uses two UTF-8 bytes, which percent-encoding expands to six URL characters. Raising the server limit just moves the cliff. For failures, preserve the clip and offer Copy text rather than silently truncating it.
Reply
#
…