From df864cf4e53bc7fab1274bea07f109400281b089 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Wed, 18 Sep 2002 19:30:19 +0000 Subject: [project @ 2002-09-18 19:30:19 by bursa] Add User-Agent header. svn path=/import/netsurf/; revision=36 --- desktop/fetch.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'desktop') diff --git a/desktop/fetch.c b/desktop/fetch.c index a7881fcc2..02a74585b 100644 --- a/desktop/fetch.c +++ b/desktop/fetch.c @@ -1,5 +1,5 @@ /** - * $Id: fetch.c,v 1.1 2002/09/11 14:24:02 monkeyson Exp $ + * $Id: fetch.c,v 1.2 2002/09/18 19:30:19 bursa Exp $ */ #include "libxml/HTMLparser.h" @@ -207,6 +207,7 @@ struct fetch* fetch_poll(struct fetch* f) curl_easy_setopt(curl, CURLOPT_URL, f->location); curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, fetch_curl_data); curl_easy_setopt(curl, CURLOPT_WRITEDATA, f); + curl_easy_setopt(curl, CURLOPT_USERAGENT, "NetSurf"); Log("fetch_poll","about to perform"); curl_easy_perform(curl); Log("fetch_poll","about to cleanup"); -- cgit v1.2.3