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 3231fe21d3b389448c9a5ca7b4c91fdd25c9e677.
* 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
printf for reserializeJune McEnroe 2021-06-09Use seprintf for capListJune McEnroe 2021-06-09Add seprintfJune McEnroe Based on seprint(2) from Plan 9. I'm not sure if my return value exactly matches Plan 9's in the case of truncation. seprint(2) is described only as returning a pointer to the terminating '\0', but if it does so even in the case of truncation, it is awkward for the caller to detect. This implementation returns end in the truncation case, so that (ptr == end) indicates truncation. 2021-05-27Add pounce-notify to README 2.4June McEnroe 2021-05-27Fix ENVIRONMENT formatting in pounce-notify(1)June McEnroe 2021-05-27Add note about Libera.Chat SASL-only rangesJune McEnroe 2021-05-25Add QUIRKS fileJune McEnroe 2021-05-19Replace freenode with tilde.chatJune McEnroe 2021-05-04notify: Reword pounce-notify manualJune McEnroe 2021-05-02Clean up Makefiles, configure scriptsJune McEnroe Default MANDIR to ${PREFIX}/man since it turns out man-db includes /usr/local/man by default. Add support for BINDIR. Separate libs out into LDADD variables. 2021-04-30palaver: Exit on getopt failureJune McEnroe Oops. 2021-04-30notify: Implement pounce-notifyJune McEnroe