Index: modules/http-method.c
===================================================================
RCS file: /cvs/gnome/gnome-vfs/modules/http-method.c,v
retrieving revision 1.165
diff -u -p -r1.165 http-method.c
--- modules/http-method.c	24 Jul 2004 10:55:02 -0000	1.165
+++ modules/http-method.c	9 Feb 2005 14:48:09 -0000
@@ -1450,6 +1450,8 @@ build_request (const char * method, Gnom
 	GString *request;
 	GnomeVFSURI *uri;
 	gchar *user_agent;
+	const gchar * const * syslangs;
+	gchar * httplangs;
 
 	uri = (GnomeVFSURI *)toplevel_uri;
 
@@ -1506,6 +1508,13 @@ build_request (const char * method, Gnom
 	}
 
 	g_string_append_printf (request, "User-Agent: %s\r\n", user_agent);
+	g_string_append_printf (request, "Accept-Charset: UTF-8,*\r\n");
+
+	syslangs = g_get_language_names ();
+	httplangs = g_strjoinv (",", (gchar **)syslangs);
+	g_string_append_printf (request, "Accept-Language: %s\r\n",
+				httplangs);
+	g_free (httplangs);
 
 	return request;
 }
Index: modules/http-neon-method.c
===================================================================
RCS file: /cvs/gnome/gnome-vfs/modules/http-neon-method.c,v
retrieving revision 1.23
diff -u -p -r1.23 http-neon-method.c
--- modules/http-neon-method.c	30 Jan 2005 23:12:43 -0000	1.23
+++ modules/http-neon-method.c	9 Feb 2005 14:48:11 -0000
@@ -1128,6 +1128,8 @@ set_etag (void **etag, const char *value
 static void
 add_default_header_handlers (ne_request *req, GnomeVFSFileInfo *info)
 {
+	const char * const * syslangs;
+	char * httplangs;
 
 	ne_add_response_header_handler (req, "Last-Modified", 
 					(ne_header_handler) set_last_modified,
@@ -1144,7 +1146,13 @@ add_default_header_handlers (ne_request 
 	ne_add_response_header_handler (req, "Date",
 					(ne_header_handler) set_access_time,
 					info);
-       
+
+	ne_add_request_header (req, "Accept-Charset", "UTF-8,*");
+
+	syslangs = g_get_language_names ();
+	httplangs = g_strjoinv (",", (char **)syslangs);
+	ne_add_request_header (req, "Accept-Language", httplangs);
+	g_free (httplangs);
 }
 
 
