summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-10-02 16:34:29 -0400
committerJune McEnroe <june@causal.agency>2019-10-02 16:34:29 -0400
commitebae1121f386c905d16c7c62749c19d30ca16fec (patch)
treeb7e12c95a1c97bf0095f4aec69176c06ef9fbe20
parentAdd The Red Threads of Fortune (diff)
downloadsrc-ebae1121f386c905d16c7c62749c19d30ca16fec.tar.gz
src-ebae1121f386c905d16c7c62749c19d30ca16fec.zip
Claim to be curl(1) in title
IMDB serves a page to our dumb User-Agent whose <title> is past the 8K
boundary but serves something normal to curl(1).
Diffstat (limited to '')
-rw-r--r--bin/title.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/title.c b/bin/title.c
index a773cc7c..d5238b1a 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);