[BACK]Return to fetch.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ftp

Diff for /src/usr.bin/ftp/fetch.c between version 1.17 and 1.18

version 1.17, 1998/02/17 23:22:54 version 1.18, 1998/03/26 03:17:08
Line 238 
Line 238 
                 fprintf(ttyout, "Requesting %s\n", origline);                  fprintf(ttyout, "Requesting %s\n", origline);
         else          else
                 fprintf(ttyout, "Requesting %s (via %s)\n", origline, proxyenv);                  fprintf(ttyout, "Requesting %s (via %s)\n", origline, proxyenv);
         snprintf(buf, sizeof(buf), "GET %s%s HTTP/1.0\r\n\r\n",          snprintf(buf, sizeof(buf), "GET %s%s HTTP/1.0\r\nHost: %s\r\n\r\n",
             proxy ? "" : "/", path);              proxy ? "" : "/", path, host);
         len = strlen(buf);          len = strlen(buf);
         if (write(s, buf, len) < len) {          if (write(s, buf, len) < len) {
                 warn("Writing HTTP request");                  warn("Writing HTTP request");

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18