Look at this text:
36 摆烂可耻但很快乐发布了一篇小红书笔记,快来看吧!
😆 Ft0nRcmbgNxWi4i 😆 http://xhslink.com/o2s5so,
复制本条信息,打开【小红书】App查看精彩内容!
Just copy the text,
paste into the form above,
and you will get the original link.
Redirect: replace "com" with "icu".
$ curl -v http://xhslink.icu/o2s5so
...
< HTTP/2 302
...
< location: https://www.xiaohongshu.com/discovery/item/6420c6650000000013011c8a
...
Resolve the code
$ curl https://xhslink.icu/code/o2s5so
https://www.xiaohongshu.com/discovery/item/6420c6650000000013011c8a%
Resolve the full URL
Actually, you can fill the whole shared text into the query string.
This is the API behind the "Resolve" button above.
$ curl https://xhslink.icu/full/?url=http://xhslink.com/o2s5so
https://www.xiaohongshu.com/discovery/item/6420c6650000000013011c8a%
By contrast, If you visit this shortlink directly, you will get:
$ curl -I http://xhslink.com/o2s5so
Location: https://www.xiaohongshu.com/discovery/item/6420c6650000000013011c8a?app_platform=ios&app_version=7.80&share_from_user_hidden=true&type=normal&xhsshare=CopyLink&appuid=5f2373dc0000000001008b32&apptime=1679927306