Replies: 1 comment
-
The getContents function has recently been reworked to allow returning headers and more easily passing curl options. I suggest you take a look at it, specifically the returnFull option, and use that to get the 'location' header. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to improve PhoronixBridge, keeping the FeedExpander base. In order to read all pages of a featured article, I have to extract the next pages link, which are query-relative links. However, the URI in the feed is a shortlink, so it is redirected to the final URL, the first page of the article.
To perform
urljoin
on page relative URL, I need the current URL… Is there a way to have it? It seems that cURL is configured to follow redirections ingetContents
, but it only returns the content, and no headers nor metadata.Beta Was this translation helpful? Give feedback.
All reactions