Displaying 12 results from an estimated 12 matches for "respcode".
Did you mean:
rescode
2008 Aug 25
2
patch for native iphone support
...currenttime[50];
+ time_t now;
+ int strflen;
+ struct tm result;
+ time(&now);
+ strflen = strftime(currenttime, 50, "%a, %d-%b-%Y %X GMT",
+ gmtime_r(&now, &result));
+ client->respcode = 206;
+
+ bytes = snprintf (ptr, remaining, "Date: %s\r\n", currenttime);
+ if (bytes > 0)
+ {
+ remaining -= bytes;
+ ptr += bytes;
+ }
+ bytes = snprintf (ptr, remaining, "Content-Range: bytes...
2006 Sep 24
1
Add-on patch to support .pls .asx .ram .qtl listing formats
...mmand_buildpls(client_t *client, source_t *source,
+ int response)
+{
+ char *username = NULL;
+ char *password = NULL;
+ ice_config_t *config;
+
+ COMMAND_REQUIRE(client, "username", username);
+ COMMAND_REQUIRE(client, "password", password);
+
+ client->respcode = 200;
+ config = config_get_config();
+ snprintf (client->refbuf->data, PER_CLIENT_REFBUF_SIZE,
+ "HTTP/1.0 200 OK\r\n"
+ "Content-Type: audio/x-scpls\r\n"
+ "Content-Disposition = attachment; filename=listen.pls\r\n\r\n"
+ &qu...
2004 Aug 06
1
minor error in http response
...ound\r\n"
+ bytes = sock_write(client->con->sock, "HTTP/1.0 400 Bad Request\r\n"
"Content-Type: text/html\r\n\r\n"
"<b>s</b>\r\n", message);
if(bytes > 0) client->con->sent_bytes = bytes;
- client->respcode = 404;
+ client->respcode = 400;
client_destroy(client);
}
<p><p>--- >8 ----
List archives: http://www.xiph.org/archives/
icecast project homepage: http://www.icecast.org/
To unsubscribe from this list, send a message to 'icecast-dev-request@xiph.org'
containing...
2008 Nov 29
0
Icecast Streaming to an iPhone or iPod touch
...getvar (client->parser, "user-agent");
+ int appledevicesupp = 0;
+
+ if (useragent && strstr(useragent, "CoreMedia")) {
+ appledevicesupp = 1;
+ }
+
remaining = client->refbuf->len;
ptr = client->refbuf->data;
client->respcode = 200;
- bytes = snprintf (ptr, remaining, "HTTP/1.0 200 OK\r\n"
- "Content-Type: %s\r\n", source->format->contenttype);
+ if (!appledevicesupp) {
+ bytes = snprintf (ptr, remaining, "HTTP/1.0 200 OK\r\n"
+ "Content-T...
2009 Sep 26
0
patch to make media player classic works in stream mode instead of download play mode (shoutcastsource)
...+ src/format.c (working copy)
@@ -275,6 +275,8 @@
{
unsigned remaining;
char *ptr;
+ const char *useragent;
+ const char *protocol;
int bytes;
int bitrate_filtered = 0;
avl_node *node;
@@ -284,9 +286,19 @@
ptr = client->refbuf->data;
client->respcode = 200;
- bytes = snprintf (ptr, remaining, "HTTP/1.0 200 OK\r\n"
- "Content-Type: %s\r\n", source->format->contenttype);
+ useragent = httpp_getvar (client->parser, "user-agent");
+ protocol = "HTTP/1.0";
+ if (useragent)
+...
2009 Dec 23
0
icecast 2.3.2 generated buildm3u don't support authenticated streaming via https
...void command_buildm3u(client_t *client, const char *mount)
{
const char *username = NULL;
const char *password = NULL;
ice_config_t *config;
COMMAND_REQUIRE(client, "username", username);
COMMAND_REQUIRE(client, "password", password);
client->respcode = 200;
config = config_get_config();
snprintf (client->refbuf->data, PER_CLIENT_REFBUF_SIZE,
"HTTP/1.0 200 OK\r\n"
"Content-Type: audio/x-mpegurl\r\n"
"Content-Disposition = attachment; filename=listen.m3u\r\n\r\n"
&q...
2005 May 18
1
Issues with Polycom 1.5.2
>From the Wiki:
'There are aready a few bugs in 1.5.2 but more fixes some good new features'
Anyone know where the bugs are being listed?
I am working through a few issues:
1. When rebooting, the phone will pause for exactly 180 seconds with
the screen reading 'updating initial configuration'. I know it is 180
seconds because when I tail the FTP server log the entries are
2010 Jul 30
33
[PATCHES] Smartjog PatchDump
Hello,
I work at SmarctJog.com, we have here some patches on IceCast for
performance and reliability, these are mostly client/connection/source
cleanups (a slave merge is underway, and some more good stuff (c)),
but we'd like this to be merged in before the list gets any longer.
Please find attached a list of our patches with a short desc:
This one is actually not from us/me, it was found
2004 Aug 06
5
Missing headers in Icecast2
Hi Karl,
Thanks for your help,
About the "Connection:" header, you are right, it's:
"Connection: close" and NOT "Connection: keep-alive". The protocol when the
SERVER sends the data is http 1.0. It's http 1.1 when the browser requests
the data.
I don't understand the "Content-Length: 54000000" header either. Also I
noticed the flash player on
2012 Oct 03
3
2.4-beta fixes for MinGW
...f
+ if (gmtime_result == NULL)
+ goto fail;
strflen = strftime(currenttime, 50, "%a, %d-%b-%Y %X GMT",
- gmtime_r(&now, &result));
+ &result);
httpclient->respcode = 206;
type = fserve_content_type (path);
bytes = snprintf (httpclient->refbuf->data, BUFSIZE,
--- icecast-2.3.99.0/src/logging.c.orig 2012-10-02 14:52:41 +0400
+++ icecast-2.3.99.0/src/logging.c 2012-10-02 15:30:57 +0400
@@ -54,7 +54,15 @@
struct tm *th...
2006 Apr 18
4
Windows Xp / Icecast 2.3.1 / Oddcast 3 / Crap Router?
Ok here's the deal. I set up Icecast and Oddcast, got them to communicate
properly, but cannot access the live audio remotely. On other computers in
the LAN it works perfetly. Currently I operate wirelessly behind a D-Link
514 router (a mite outdated by now, yes?) and have opened all necessary
ports, turned my firewalls off, set this computer as a DMZ, pretty much
everything I can think of -
2004 Aug 06
2
improved error.log output --diff
...transform it, otherwise, write a 404 */
if (stat(fullpath, &statbuf) == 0) {
- DEBUG0("Stats request, sending XSL transformed stats");
+ DEBUG0("Stats request, sending XSL transformed stats, %s", client->con->ip);
client->respcode = 200;
bytes = sock_write(client->con->sock,
"HTTP/1.0 200 OK\r\nContent-Type: text/html\r\n\r\n");
@@ -816,7 +816,7 @@
avl_tree_rlock(global.source_tree);
source = source_find_mount(uri);
if (source) {
- DEBUG0("Source f...