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
td>Rewrite line editing again, add formattingJune McEnroe 2018-08-06Fix allocation size in vaswprintfJune McEnroe This is so embarrassing. It only started crashing once it had strings that were long enough, and then it took me so long to notice this mistake. I was worried I was still doing va_list wrong somehow. 2018-08-06Implement word wrappingJune McEnroe 2018-08-06Use wchar_t strings for all of UIJune McEnroe vaswprintf is a nightmare. 2018-08-06Rename line editing functionsJune McEnroe 2018-08-05Initialize all possible color pairsJune McEnroe This is actually possible with use_default_colors! 2018-08-05Refactor color initializationJune McEnroe 2018-08-05Add ^L redrawJune McEnroe 2018-08-05Use 16 colors if availableJune McEnroe Fall back to using bold if there are only 8 colors. This also allowed bright background colors in 16-color terminals. I must port this system to torus. I'll be able to remove the awful termcap patch hack. 2018-08-05Limit parsed colors to number of mIRC colorsJune McEnroe Oh boy that's embarrassing. 2018-08-04Show source link on exitJune McEnroe 2018-08-04Implement line editing, scrollingJune McEnroe Don't really have a way to implement the M-* keys, and currently missing C-w. 2018-08-04Handle /topicJune McEnroe