Return appropriate titles for links that don't lead to html content
When exploring a link, if it returns a content type that isn't text/html return the content type instead of a title.
I implemented something similar in my code using curl_getinfo($this->var, CURLINFO_CONTENT_TYPE); Then if it's text/html I get the title... and if it's something like PDF or MP3 I can return something like PDF document or Audio File.
I implemented something similar in my code using curl_getinfo($this->var, CURLINFO_CONTENT_TYPE); Then if it's text/html I get the title... and if it's something like PDF or MP3 I can return something like PDF document or Audio File.
1
person likes this idea
I like this idea!
Tell me when this idea gets some attention.
The more people who like this idea, the more it gets noticed.
The more people who like this idea, the more it gets noticed.
The company has not planned to implement this.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?With version 2.0 of the API there will be an option to return the content-type along with the response. It should then be easy enough for you to adjust the title as you see fit when none is returned.
The company thinks
this is one of the best points
Loading Profile...


EMPLOYEE