zlacker

[return to "Tell HN: t.co is adding a five-second delay to some domains"]
1. hlanda+Se[view] [source] 2023-08-15 06:50:40
>>xslowz+(OP)
Worth pointing out that t.co has always been an instance of an annoying and seemingly unjustified practice I named "nonsemantic redirect". Rather than legitimately redirecting using an HTTP Location header, it instead is an HTML page with a META refresh tag on it.

You don't see this with curl/wget because they use user agent sniffing. If they don't think you're a browser they _will_ give you a Location header. To see it, capture a request in Firefox developer tools, right click on the request, copy as CURL. (May need to remove the Accept-Encoding tag and add -i to see the headers).

◧◩
2. mzs+Ho2[view] [source] 2023-08-15 21:05:16
>>hlanda+Se
No, in fact now t.co even returns an empty body with it's 301 response:

  % curl -vgsSw'< HTTP/size %{size_download}\n' https://t.co/DzIiCFp7Ti 2>&1 | grep '^< \(HTTP/\)\|\(location: \)'
  < HTTP/2 301 
  < location: https://www.threads.net/@chaco_mmm_room
  < HTTP/size 0
◧◩◪
3. flutas+zp2[view] [source] 2023-08-15 21:12:02
>>mzs+Ho2
Firefox:

    <head><noscript><META http-equiv="refresh" content="0;URL=https://www.threads.net/@chaco_mmm_room"></noscript><title>https://www.threads.net/@chaco_mmm_room</title></head><script>window.opener = null; location.replace("https:\/\/www.threads.net\/@chaco_mmm_room")</script>
◧◩◪◨
4. mzs+Us2[view] [source] 2023-08-15 21:32:14
>>flutas+zp2
Turns-out it depends on the User-Agent: >>37139425
[go to top]