diff -urbB wget/src/http.c wget.wip/src/http.c
--- wget/src/http.c	Thu Apr  7 14:26:34 2005
+++ wget.wip/src/http.c	Thu Apr  7 14:45:18 2005
@@ -362,6 +362,17 @@
    PROMISED_SIZE bytes are sent over the wire -- if the file is
    longer, read only that much; if the file is shorter, report an error.  */
 
+/* Turn off optimization for Visual Studio 6 sp6 in order to avoid
+http.c(395) : fatal error C1001: INTERNAL COMPILER ERROR
+                (compiler file 'F:\9782\vc98\p2\src\P2\main.c', line 494)
+Is this still neccessary on VC++ >6 ?
+Same in retr.c
+*/
+#ifdef _MSC_VER
+#pragma optimize("g",off)
+#endif
+
+
 static int
 post_file (int sock, const char *file_name, wgint promised_size)
 {
diff -urbB wget/src/retr.c wget.wip/src/retr.c
--- wget/src/retr.c	Thu Apr  7 14:26:36 2005
+++ wget.wip/src/retr.c	Thu Apr  7 14:43:44 2005
@@ -193,6 +193,19 @@
    error while reading data, -1 is returned.  In case of error while
    writing data, -2 is returned.  */
 
+/* Turn off optimization for Visual Studio 6 sp6 in order to avoid
+retr.c(267) : fatal error C1001: INTERNAL COMPILER ERROR
+                (compiler file 'F:\9782\vc98\p2\src\P2\main.c', line 494)
+    Please choose the Technical Support command on the Visual C++
+    Help menu, or open the Technical Support help file for more information
+
+Is this still neccessary on VC++ >6 ?
+Same in http.c
+*/
+#ifdef _MSC_VER
+#pragma optimize("g",off)
+#endif
+
 int
 fd_read_body (int fd, FILE *out, wgint toread, wgint startpos,
 	      wgint *qtyread, wgint *qtywritten, double *elapsed, int flags)
