ListenNotes

부분 유료
분류별 Listen Notes | 업데이트됨 25 giorni fa | Media
인기

9.2 / 10

지연 시간

97ms

서비스 수준

100%

Health Check

N/A

모든 토론으로 돌아가기

Unable to get redirect URL

Rapid account: Krisdb
krisdb
6 anni fa

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 anni fa

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

Rapid account: Krisdb
krisdb Commented 6 anni fa

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 anni fa

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 anni fa

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.

아래에 의견을 추가하고 토론에 참여하세요.

새 댓글을 게시하려면 로그인 / 가입