Lines Matching refs:line
86 char *host = url, *path = "", auth[128] = { 0 }, line[1024];
142 sprintf(line, "%s /%s HTTP/1.1\r\n", method == METHOD_POST?"POST":"GET", path);
143 sprintf(line, "%sHost: %s\r\n", line, host);
144 sprintf(line, "%sUser-Agent: wget\r\n", line);
146 sprintf(line, "%sAuthorization: Basic %s\r\n", line, auth);
148 sprintf(line, "%sRange: bytes=%ld-\r\n", line, offset);
151 sprintf(line, "%sContent-Type: application/x-www-form-urlencoded\r\n", line);
152 sprintf(line, "%sContent-Length: %d\r\n\r\n", line, (int)strlen(buf));
153 sprintf(line, "%s%s", line, buf);
156 sprintf(line,"%sConnection: close\r\n\r\n", line);
160 write(fd, line, strlen(line));
162 if(waitsock(fd, 2, 0) && read(fd, line, sizeof(line)))
164 dprintf("%s", line);
169 for(s = line; *s && !isspace((int)*s); s++) ;
195 while(fgets(line, sizeof(line), fp)){
196 dprintf("%s", line);
197 for(s = line; *s == '\r'; s++) ;
213 if(chunked && fgets(line, sizeof(line), fp))
214 len = strtol(line, NULL, 16);