Lines 189-202
Link Here
|
189 |
/* |
189 |
/* |
190 |
* get the headers by sending GET |
190 |
* get the headers by sending GET |
191 |
*/ |
191 |
*/ |
192 |
sprintf(buffer, |
192 |
snprintf(buffer, sizeof(buffer), |
193 |
"GET %s HTTP/1.0\r\nUser-Agent: %s%s\r\nHost: %s\r\nAccept: */*\r\nRange: bytes=%ld-%ld\r\n%s%s\r\n", |
193 |
"GET %s HTTP/1.0\r\nUser-Agent: %s%s\r\nHost: %s\r\nAccept: */*\r\nRange: bytes=%ld-%ld\r\n%s%s\r\n", |
194 |
connection->u.path, PACKAGE_NAME, VERSION, |
194 |
connection->u.path, PACKAGE_NAME, VERSION, |
195 |
connection->u.host, |
195 |
connection->u.host, |
196 |
connection->remote_startpos, connection->remote_endpos, |
196 |
connection->remote_startpos, connection->remote_endpos, |
197 |
referer ? referer : "", |
197 |
referer ? referer : "", |
198 |
wwwauth ? wwwauth : ""); |
198 |
wwwauth ? wwwauth : ""); |
199 |
|
199 |
buffer[sizeof(buffer)-1] = '\0'; |
200 |
|
200 |
|
201 |
debug_prz("HTTP request= %s\n", buffer); |
201 |
debug_prz("HTTP request= %s\n", buffer); |
202 |
|
202 |
|