diff options
author | James Bursa <james@netsurf-browser.org> | 2002-09-18 19:30:19 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2002-09-18 19:30:19 +0000 |
commit | df864cf4e53bc7fab1274bea07f109400281b089 (patch) | |
tree | 91a95f6179eac214f31bdd99e7a63899068138db /desktop/fetch.c | |
parent | 1e5061507b7c5d61b0f0152abb6faa728906a61e (diff) | |
download | netsurf-df864cf4e53bc7fab1274bea07f109400281b089.tar.gz netsurf-df864cf4e53bc7fab1274bea07f109400281b089.tar.bz2 |
[project @ 2002-09-18 19:30:19 by bursa]
Add User-Agent header.
svn path=/import/netsurf/; revision=36
Diffstat (limited to 'desktop/fetch.c')
-rw-r--r-- | desktop/fetch.c | 3 |
1 files changed, 2 insertions, 1 deletions
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"); |