0

I understand there's no theoretical character limit to a URL, but it's 255 for the domain.

The consensus seems to indicate a safe bet is about 2000 characters, but it all depends on the browser and web server.

The twitter API faq for t.co doesn't mention a limit for expanded links, but instead only the shortened links.

Does anyone know what the maximum character count for a fully-expanded t.co link is, regardless of browser or target web server?

Is there a quick and easy way to check?

What happens if a link is too long?

loud_flash
  • 67
  • 5
  • The shortener expands the shortened url to the original full length one - at which point the browser behaves exactly as if you had not shortened it in the first place. The shortener is not something magic, it is basically simply a mapping of short to long url which is resolved once you visit the short one. – luk2302 Jan 04 '23 at 07:53
  • I don't think you understand my question. The t.co server must have a character limit for the original size URL. I want to know what that limit is. – loud_flash Jan 05 '23 at 08:44
  • Why would you think so? Why must it have a limit? You could just try shortening a url of a few different lengths to see how it behaves. Are you *actually* dealing with long URLs? – luk2302 Jan 05 '23 at 08:48
  • I think it would have a limit for basic security concerns - if it doesn't, it's a major security lapse on twitter's side - but this is not what I am asking, and I'm not here to debate that. Yes, I am dealing with long URLs, particularly with long parameters. I could try experimenting, but I don't want to trigger security mechanisms and risk getting banned, plus I thought someone might already have, or will have in the future, run into the same question, which is why I posted this question. – loud_flash Jan 05 '23 at 16:09
  • I am not aware of such a limit but I would be interested how this would remotely be a security lapse. You can shorten very long URLs - what does any security have to do with that. And I do not see why t.co limits matter here, chances are they are much higher than what your browser can handle anyway, therefore the limit would not matter because the link would break in your browser regardless. – luk2302 Jan 05 '23 at 16:19
  • Again, I'm not here to debate. My question relates to what the t.co limit is, not what a browser can currently handle. – loud_flash Jan 05 '23 at 16:27

0 Answers0