|
Lines 768-774
Link Here
|
| 768 |
_http_cmd(fd, "Host: %s", host); |
768 |
_http_cmd(fd, "Host: %s", host); |
| 769 |
else |
769 |
else |
| 770 |
_http_cmd(fd, "Host: %s:%d", host, url->port); |
770 |
_http_cmd(fd, "Host: %s:%d", host, url->port); |
| 771 |
_http_cmd(fd, "User-Agent: %s " _LIBFETCH_VER, __progname); |
771 |
if ((p = getenv("HTTP_USER_AGENT")) != NULL && *p != '\0') |
|
|
772 |
_http_cmd(fd, "User-Agent: %s ", p); |
| 773 |
else |
| 774 |
_http_cmd(fd, "User-Agent: %s " _LIBFETCH_VER, __progname); |
| 772 |
if (url->offset) |
775 |
if (url->offset) |
| 773 |
_http_cmd(fd, "Range: bytes=%lld-", url->offset); |
776 |
_http_cmd(fd, "Range: bytes=%lld-", url->offset); |
| 774 |
_http_cmd(fd, "Connection: close"); |
777 |
_http_cmd(fd, "Connection: close"); |