View | Details | Raw Unified | Return to bug 48771
Collapse All | Expand All

(-)shout-0.8.0/shout.c Thu Feb 27 15:47:37 2003 (-2 / +2 lines)
Lines 1738-1744 Link Here
1738
void
1738
void
1739
update_meta_info_on_server (char *filename, unsigned long int size)
1739
update_meta_info_on_server (char *filename, unsigned long int size)
1740
{
1740
{
1741
       sock_t sockfd = sock_connect (set.servername, set.port);
1741
       sock_t sockfd = sock_connect (set.servername, set.port-1);
1742
       char title[BUFSIZE];    /* copy of filename */
1742
       char title[BUFSIZE];    /* copy of filename */
1743
       char *song = NULL;
1743
       char *song = NULL;
1744
       char *mount = NULL;
1744
       char *mount = NULL;
Lines 1815-1821 Link Here
1815
1815
1816
       if (sockfd != -1) {
1816
       if (sockfd != -1) {
1817
               if (set.use_icy) {
1817
               if (set.use_icy) {
1818
                       sock_write (sockfd, "GET /admin.cgi?pass=%s&mode=updinfo&song=%s HTTP/1.0\nHost: %s:%d\nUser-Agent: Shout/%s\n\n", set.password, url_encode (titleptr, &song), set.servername, set.port, VERSION);
1818
                       sock_write (sockfd, "GET /admin.cgi?pass=%s&mode=updinfo&song=%s HTTP/1.0\nHost: %s:%d\nUser-Agent: Mozilla(Shout/%s)\n\n", set.password, url_encode (titleptr, &song), set.servername, set.port-1, VERSION);
1819
               } else {
1819
               } else {
1820
                       sock_write (sockfd, "GET /admin.cgi?pass=%s&mode=updinfo&mount=%s&song=%s&length=%ld HTTP/1.0\nHost: %s:%d\nUser-Agent: Shout/%s\n\n", set.password, url_encode (set.mount_name, &mount), url_encode (titleptr, &song), size, set.servername, set.port, VERSION);
1820
                       sock_write (sockfd, "GET /admin.cgi?pass=%s&mode=updinfo&mount=%s&song=%s&length=%ld HTTP/1.0\nHost: %s:%d\nUser-Agent: Shout/%s\n\n", set.password, url_encode (set.mount_name, &mount), url_encode (titleptr, &song), size, set.servername, set.port, VERSION);
1821
                       if (mount)
1821
                       if (mount)

Return to bug 48771