patch for v101

From: Roy T. Fielding (fielding@kiwi.ICS.UCI.EDU)
Date: Fri Dec 10 1999 - 20:22:57 MET


This fixes delivery problems I was having for both mail and http modes.
mail mode needed another blank line to separate the address from the
mail body. http mode is too dumb to be HTTP/1.1, so don't claim to be
(this avoids the 100 response and persistent connections).

....Roy

--- ecdl2K-108.32bit.c_v101 Fri Dec 10 10:22:38 1999
+++ ecdl2K-108.32bit.c Fri Dec 10 10:34:07 1999
@@ -3306,7 +3306,7 @@
       int status;
 
       fprintf( handle
- , "To: %s\n"
+ , "To: %s\n\n"
              , mode == Mail
                ? "ecdl2K-108@pauillac.inria.fr"
                : "ecdl2K-108@rupture.net"
@@ -3597,7 +3597,7 @@
     return -1;
   }
   /* Send POST request + data */
- fprintf(f, "POST " HTTP_URL " HTTP/1.1\r\n");
+ fprintf(f, "POST " HTTP_URL " HTTP/1.0\r\n");
   fprintf(f, "Host: %s:%d \r\n", HTTP_SERVER_HOST, HTTP_SERVER_PORT);
   fprintf(f, "Content-length: %d\r\n", strlen(payload));
   fprintf(f, "\r\n");



This archive was generated by hypermail 2b29 : Sat Jan 01 2000 - 15:26:57 MET