From 9d84091b438ba1cde14cc60c9410624f0fdec947 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Wed, 2 Oct 2019 16:34:29 -0400 Subject: Claim to be curl(1) in title IMDB serves a page to our dumb User-Agent whose is past the 8K boundary but serves something normal to curl(1). --- bin/title.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/title.c b/bin/title.c index cf394dd0..0208f862 100644 --- a/bin/title.c +++ b/bin/title.c @@ -154,7 +154,7 @@ int main(int argc, char *argv[]) { curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, error); curl_easy_setopt(curl, CURLOPT_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS); - curl_easy_setopt(curl, CURLOPT_USERAGENT, "title/1.0"); + curl_easy_setopt(curl, CURLOPT_USERAGENT, "curl/7.54.0"); curl_easy_setopt(curl, CURLOPT_ACCEPT_ENCODING, ""); curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L); curl_easy_setopt(curl, CURLOPT_MAXREDIRS, 3L); -- cgit 1.4.1 refs/?h=1.0p1'>refs</a> <a class='active' href='/pounce/log/bounce.h?h=1.0p1&showmsg=1&follow=1'>log</a> <a href='/pounce/tree/bounce.h?h=1.0p1'>tree</a> <a href='/pounce/commit/bounce.h?h=1.0p1&follow=1'>commit</a> <a href='/pounce/diff/bounce.h?h=1.0p1&follow=1'>diff</a></td><td class='form'><form class='right' method='get' action='/pounce/log/bounce.h'> <input type='hidden' name='h' value='1.0p1'/><input type='hidden' name='showmsg' value='1'/><select name='qt'> <option value='grep'>log msg</option> <option value='author'>author</option> <option value='committer'>committer</option> <option value='range'>range</option> </select> <input class='txt' type='search' size='10' name='q' value=''/> <input type='submit' value='search'/> </form> </td></tr></table> <div class='path'>path: <a href='/pounce/log/?h=1.0p1&ofs=50&showmsg=1&follow=1'>root</a>/<a href='/pounce/log/bounce.h?h=1.0p1&ofs=50&showmsg=1&follow=1'>bounce.h</a> (<a href='/pounce/log/bounce.h?h=1.0p1&ofs=50&showmsg=1'>unfollow</a>)</div><div class='content'><table class='list nowrap'><tr class='nohover'><th></th><th class='left'>Commit message (<a href='/pounce/log/bounce.h?h=1.0p1&ofs=50&follow=1'>Collapse</a>)</th><th class='left'>Author</th></tr> <tr class='logheader'><td><span title='2019-11-06 23:16:11 -0500'>2019-11-06</span></td><td class='logsubject'><a href='/pounce/commit/Makefile?h=1.0p1&id=1768fdbbcac4390f5d9c6ef54408056602efe7ae&follow=1'>Allow unsetting LIBRESSL_PREFIX</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> </td></tr> <tr class='logheader'><td><span title='2019-11-06 23:02:24 -0500'>2019-11-06</span></td><td class='logsubject'><a href='/pounce/commit/pounce.1?h=1.0p1&id=ae8a7025b48b1c656edba6aeed8262376b0aada2&follow=1'>Document calico service configuration</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> </td></tr> <tr class='logheader'><td><span title='2019-11-06 22:37:57 -0500'>2019-11-06</span></td><td class='logsubject'><a href='/pounce/commit/pounce.1?h=1.0p1&id=875b57fb9b1bd07f7e13c0391087d8d667327099&follow=1'>Document SASL EXTERNAL configuration in more detail</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> </td></tr> <tr class='logheader'><td><span title='2019-11-06 19:54:21 -0500'>2019-11-06</span></td><td class='logsubject'><a href='/pounce/commit/pounce.1?h=1.0p1&id=82b27477253f6d64046dde1453a2f67d2ea91391&follow=1'>Document pounce service configuration</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> </td></tr> <tr class='logheader'><td><span title='2019-11-06 17:59:02 -0500'>2019-11-06</span></td><td class='logsubject'><a href='/pounce/commit/README.7?h=1.0p1&id=b043a5b6ca8721c7186745ec9858b3fa360291b7&follow=1'>Mention Darwin and GNU/Linux in README</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> </td></tr> <tr class='logheader'><td><span title='2019-11-06 17:58:46 -0500'>2019-11-06</span></td><td class='logsubject'><a href='/pounce/commit/Darwin.mk?h=1.0p1&id=bbfac18d878ac74e9eec6a782ebf32154b27261e&follow=1'>Assume LibreSSL from brew on Darwin</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> </td></tr> <tr class='logheader'><td><span title='2019-11-06 17:47:46 -0500'>2019-11-06</span></td><td class='logsubject'><a href='/pounce/commit/Darwin.mk?h=1.0p1&id=a462b12452d8a2faf0599c6e93a7449a7ee8f68d&follow=1'>Remove -DNO_EXPLICIT_BZERO from Darwin.mk</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> </td></tr> <tr class='logheader'><td><span title='2019-11-06 17:43:33 -0500'>2019-11-06</span></td><td class='logsubject'><a href='/pounce/commit/Makefile?h=1.0p1&id=70031693a5bee7fa1266a6c86c928bf7161479cd&follow=1'>Don't install rc scripts or dirs on Linux</a></td><td>June McEnroe