#if defined (commentout)
/* This is the old header */
snprintf(buffer, MAX_HEADER_LEN + MAX_HOST_LEN + SR_MAX_PATH,
"GET %s HTTP/1.0\r\n"
"Host: %s:%d\r\n"
"User-Agent: %s\r\n"
"Icy-MetaData:1\r\n",
myurl,
ui.host,
ui.port,
useragent[0] ? useragent : "Streamripper/1.x");
#endif
/* This is the header suggested Florian Stoehr */
snprintf(buffer, MAX_HEADER_LEN + MAX_HOST_LEN + SR_MAX_PATH,
"GET %s HTTP/1.1\r\n"
"Accept: */*\r\n"
"Cache-Control: no-cache\r\n"
"User-Agent: %s\r\n"
"Icy-Metadata: 1\r\n"
"Connection: close\r\n"
"Host: %s:%d\r\n",
myurl,
useragent[0] ? useragent: "Streamripper/1.x",
ui.host,
ui.port);
|
/* This is the old header */
snprintf(buffer, MAX_HEADER_LEN + MAX_HOST_LEN + SR_MAX_PATH,
"GET %s HTTP/1.0\r\n"
"Host: %s:%d\r\n"
"User-Agent: %s\r\n"
"Icy-MetaData:1\r\n",
myurl,
ui.host,
ui.port,
useragent[0] ? useragent : "Streamripper/1.x");
#if defined (commentout)
/* This is the header suggested Florian Stoehr */
snprintf(buffer, MAX_HEADER_LEN + MAX_HOST_LEN + SR_MAX_PATH,
"GET %s HTTP/1.1\r\n"
"Accept: */*\r\n"
"Cache-Control: no-cache\r\n"
"User-Agent: %s\r\n"
"Icy-Metadata: 1\r\n"
"Connection: close\r\n"
"Host: %s:%d\r\n",
myurl,
useragent[0] ? useragent: "Streamripper/1.x",
ui.host,
ui.port);
#endif
|