summary refs log tree commit diff
path: root/bin/title.c (follow)
Commit message (Collapse)AuthorAge
* Bump title buffer to 64KJune McEnroe2020-08-15
| | | | YouTube now sends <title> that occurs 38K into the file...
* Fix setting second title request to GETJune McEnroe2020-07-25
| | | | | | | Since 9c845be2797e2047547ec247cb037471aeb48bb0 in curl (7.71.0), setting CURLOPT_NOBODY to 1 sets the request method to HEAD, but setting it back to 0 does not change the method back to GET. Setting CURLOPT_HTTPGET both sets the request method and unsets CURLOPT_NOBODY.
* Add facebook and twitter to title user-agentJune McEnroe2020-07-08
| | | | | | | | | This fixes fetching tweets again! https://github.com/thelounge/thelounge/pull/ 3602 (Intentionally breaking the link so GitHub doesn't add a "referenced this PR" thing?)
* Match URLs inside parens or with paired parens insideJune McEnroe2020-02-10
|
* Duplicate effective URL before passing it back to curlJune McEnroe2020-02-10
| | | | | Apparently sometimes it didn't like receiving its own internal storage to parse again. Understandable.
* Claim to be curl(1) in titleJune McEnroe2019-10-02
| | | | | IMDB serves a page to our dumb User-Agent whose <title> is past the 8K boundary but serves something normal to curl(1).
* Fail on HTTP failure status in titleJune McEnroe2019-09-27
|
* Revert "Enable cookies in title"June McEnroe2019-09-22
| | | | This reverts commit 279111dda15dd9170e11b9688eb973f2af2e6300.
* Enable cookies in titleJune McEnroe2019-09-20
| | | | Perhaps this will make it less suspicious to Google. Who knows.
* Only GET the final redirect locationJune McEnroe2019-09-12
|
* Consume entire bodyJune McEnroe2019-09-12
| | | | | Aborting the request and leaving data around may be causing intermittent errors. Just discard the rest of the data.
* Add title -v flagJune McEnroe2019-09-10
|
* Use curl error bufferJune McEnroe2019-09-10
|
* Set Accept-Encoding in titleJune McEnroe2019-09-10
| | | | | | Because apparently it's fine for servers to respond with Content-Encoding you didn't ask for, and curl won't decode it if you didn't ask for it.
* Set title User-AgentJune McEnroe2019-09-08
| | | | Some things don't like you if you don't send one.
* Add -x flag to titleJune McEnroe2019-09-07
|
* Handle lack of Content-TypeJune McEnroe2019-09-05
|
* Use CURLINFO_CONTENT_TYPEJune McEnroe2019-09-05
| | | | Oops, didn't see this.
* Decode entities in titlesJune McEnroe2019-09-05
|
* Print title as soon as it's availableJune McEnroe2019-09-05
|
* Add titleJune McEnroe2019-09-05