ListenNotes

FREEMIUM
Por Listen Notes | Atualizado לפני 25 ימים | Media
Popularidade

9.2 / 10

Latência

97ms

Nível de serviço

100%

Health Check

N/A

Voltar para todas as discussões

Unable to get redirect URL

Rapid account: Krisdb
krisdb
לפני 6 שנים

All results that are returned have URLs is this format:

https://www.listennotes.com/c/r/0cc6b1705e954c7d9e60b9db137cf13a

I used to be able to get the URL that URL redirected to by retrieving the “Location” Header Field. However, now the “Location” Header field is returning this:

/c/r/0cc6b1705e954c7d9e60b9db137cf13a/

Is there anyway to get the redirect URL?

Rapid account: Krisdb
krisdb Commented לפני 6 שנים

Looks like it working again. Thanks for the quick fix!

Rapid account: Krisdb
krisdb Commented לפני 6 שנים

Thanks for the quick response. I am parsing the RSS feeds and I’m unable to using the listennotes.com URL because it returns the code of the listennotes.com redirect page instead of the actual RSS code of the page it’s redirecting to.

Rapid account: Listennotes
listennotes Commented לפני 6 שנים

Okay, I know what went wrong:

$ curl -IL https://www.listennotes.com/c/r/0cc6b1705e954c7d9e60b9db137cf13a

HTTP/2 301
date: Thu, 09 Aug 2018 03:10:28 GMT
content-type: text/html; charset=utf-8
set-cookie: __cfduid=de58340ec191da539fa7bb822ad6d5ce71533784228; expires=Fri, 09-Aug-19 03:10:28 GMT; path=/; domain=.listennotes.com; HttpOnly
location: /c/r/0cc6b1705e954c7d9e60b9db137cf13a/
expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
server: cloudflare
cf-ray: 447707a13e6f6c10-SJC

HTTP/2 301
date: Thu, 09 Aug 2018 03:10:28 GMT
content-type: text/html; charset=utf-8
set-cookie: __cfduid=dde08fbd84b6dac3fd4905e87440908631533784228; expires=Fri, 09-Aug-19 03:10:28 GMT; path=/; domain=.listennotes.com; HttpOnly
vary: Cookie
x-frame-options: SAMEORIGIN
location: http://feeds.feedburner.com/starwarstonight
expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
server: cloudflare
cf-ray: 447707a18e786c10-SJC

So https://www.listennotes.com/c/r/0cc6b1705e954c7d9e60b9db137cf13a redirected to https://www.listennotes.com/c/r/0cc6b1705e954c7d9e60b9db137cf13a/ (trailing back slash), then redirected to http://feeds.feedburner.com/starwarstonight

Now, it’s fixed:

$ curl -IL https://www.listennotes.com/c/r/0cc6b1705e954c7d9e60b9db137cf13a

HTTP/2 301
date: Thu, 09 Aug 2018 03:20:12 GMT
content-type: text/html; charset=utf-8
set-cookie: __cfduid=de2a0049ce0d7db342e11b995af45a6601533784812; expires=Fri, 09-Aug-19 03:20:12 GMT; path=/; domain=.listennotes.com; HttpOnly
location: http://feeds.feedburner.com/starwarstonight
x-frame-options: SAMEORIGIN
vary: Cookie
expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
server: cloudflare
cf-ray: 447715e55eeb6e4a-SJC

Rapid account: Listennotes
listennotes Commented לפני 6 שנים

Interesting… I actually didn’t know that “Location” header field contained the redirected url – probably it’s a Mashape thing…

May I know why do you need the redirected url? I want to understand the use case here.

Junte-se à discussão - adicione o comentário abaixo:

Efetue login / inscreva-se para postar novos comentários