read = fread(buf, 1, read, in);
if(ferror(in))
return(-1);
read = fread(buf, 1, read, in);
if(ferror(in))
return(-1);
read = fread(buf, 1, sizeof(buf), in);
if(ferror(in))
return(-1);
read = fread(buf, 1, sizeof(buf), in);
if(ferror(in))
return(-1);
if(fwrite(buf, 1, read, out) != read)
return(-1);
fprintf(out, "\r\n");
if(fwrite(buf, 1, read, out) != read)
return(-1);
fprintf(out, "\r\n");
/* Make sure to send EOF */
shutdown(pfds[1], SHUT_WR);
/* Make sure to send EOF */
shutdown(pfds[1], SHUT_WR);
replstr(&resp->ver, req->ver);
if(!strcmp(req->ver, "HTTP/1.0")) {
replstr(&resp->ver, req->ver);
if(!strcmp(req->ver, "HTTP/1.0")) {