You are here: Home » Reply

Reply To: mt-daapd 1281: soundbridge vs. Rhythmbox

#5504

indridi
Participant

If you can tell me what the user-agent is for rhythmbox, I’ll fix it.

running mt-daapd -d9 (svn 1281), and streaming an mp3 file to rhythmbox (0.9.5), I got the following


...
2006-07-13 09:38:32: select(7, 255.899414)
2006-07-13 09:38:47: Thread 1: Entering ws_dispatcher (Connection from 192.168.1.100)
2006-07-13 09:38:47: Thread 1: got request
2006-07-13 09:38:47: Request: GET /databases/1/items/4318.mp3?session-id=1 HTTP/1.1
2006-07-13 09:38:47: Thread 1: Read: Host: 192.168.1.3
2006-07-13 09:38:47: Thread 1: Adding header *Host=192.168.1.3*
2006-07-13 09:38:47: Added *Host=192.168.1.3*
2006-07-13 09:38:47: Thread 1: Read: Accept: */*
2006-07-13 09:38:47: Thread 1: Adding header *Accept=*/**
2006-07-13 09:38:47: Added *Accept=*/**
2006-07-13 09:38:47: Thread 1: Read: Cache-Control: no-cache
2006-07-13 09:38:47: Thread 1: Adding header *Cache-Control=no-cache*
2006-07-13 09:38:47: Added *Cache-Control=no-cache*
2006-07-13 09:38:47: Thread 1: Read: User-Agent: iTunes/4.6 (Windows; N)
2006-07-13 09:38:47: Thread 1: Adding header *User-Agent=iTunes/4.6 (Windows; N)*
2006-07-13 09:38:47: Added *User-Agent=iTunes/4.6 (Windows; N)*
2006-07-13 09:38:47: Thread 1: Read: Accept-Language: en-us, en;q=5.0
2006-07-13 09:38:47: Thread 1: Adding header *Accept-Language=en-us, en;q=5.0*
2006-07-13 09:38:47: Added *Accept-Language=en-us, en;q=5.0*
2006-07-13 09:38:47: Thread 1: Read: Client-DAAP-Access-Index: 2
2006-07-13 09:38:47: Thread 1: Adding header *Client-DAAP-Access-Index=2*
2006-07-13 09:38:47: Added *Client-DAAP-Access-Index=2*
2006-07-13 09:38:47: Thread 1: Read: Client-DAAP-Version: 3.0
2006-07-13 09:38:47: Thread 1: Adding header *Client-DAAP-Version=3.0*
2006-07-13 09:38:47: Added *Client-DAAP-Version=3.0*
2006-07-13 09:38:47: Thread 1: Read: Client-DAAP-Validation: 94E13E138DA1DDD5D9DBB530B33728BC
2006-07-13 09:38:47: Thread 1: Adding header *Client-DAAP-Validation=94E13E138DA1DDD5D9DBB530B33728BC*
2006-07-13 09:38:47: Added *Client-DAAP-Validation=94E13E138DA1DDD5D9DBB530B33728BC*
2006-07-13 09:38:47: Thread 1: Read: Client-DAAP-Request-ID: 1
2006-07-13 09:38:47: Thread 1: Adding header *Client-DAAP-Request-ID=1*
2006-07-13 09:38:47: Added *Client-DAAP-Request-ID=1*
2006-07-13 09:38:47: Thread 1: Read: Connection: close
2006-07-13 09:38:47: Thread 1: Adding header *Connection=close*
2006-07-13 09:38:47: Added *Connection=close*
2006-07-13 09:38:47: Thread 1: Read:
2006-07-13 09:38:47: Thread 1: Headers parsed!
2006-07-13 09:38:47: Checking to see if connection matches close
2006-07-13 09:38:47: And it DOES!
2006-07-13 09:38:47: Thread 1: Connection type HTTP/1.1
: Connection: non-persist
2006-07-13 09:38:47: Thread 1: parsing GET args
2006-07-13 09:38:47: Thread 1: Entering ws_getgetvars (session-id=1)
2006-07-13 09:38:47: Thread 1: Adding arg session-id = 1
2006-07-13 09:38:47: Added *session-id=1*
2006-07-13 09:38:47: Thread 1: Done parsing GET/POST args!
2006-07-13 09:38:47: Thread 1: Original URI: /databases/1/items/4318.mp3
2006-07-13 09:38:47: Thread 1: Translated URI: /databases/1/items/4318.mp3
2006-07-13 09:38:47: Thread 1: Preparing to find handler
2006-07-13 09:38:47: Thread 1: URI Match!
2006-07-13 09:38:47: Thread 1: Time is 1152776327 seconds after epoch
2006-07-13 09:38:47: Thread 1: Setting time header
2006-07-13 09:38:47: Added *Date=Thu, 13 Jul 2006 07:38:47 GMT*
2006-07-13 09:38:47: Thread 1: Using non-default handler
2006-07-13 09:38:47: Added *Accept-Ranges=bytes*
2006-07-13 09:38:47: Added *DAAP-Server=mt-daapd/svn-1281*
2006-07-13 09:38:47: Added *Content-Type=application/x-dmap-tagged*
2006-07-13 09:38:47: Added *Cache-Control=no-cache*
2006-07-13 09:38:47: Added *Expires=-1*
2006-07-13 09:38:47: Executing: select * from songs where id=4318
2006-07-13 09:38:47: Thread 1: Length of file (remaining) is 4921344
2006-07-13 09:38:47: Updating Content-Type from application/x-dmap-tagged to audio/mp3
2006-07-13 09:38:47: Added *Content-Length=4921344*
2006-07-13 09:38:47: Added *Connection=Close*
2006-07-13 09:38:47: Emitting reponse header Connection: Close
2006-07-13 09:38:47: Emitting reponse header Content-Length: 4921344
2006-07-13 09:38:47: Emitting reponse header Expires: -1
2006-07-13 09:38:47: Emitting reponse header Cache-Control: no-cache
2006-07-13 09:38:47: Emitting reponse header Content-Type: audio/mp3
2006-07-13 09:38:47: Emitting reponse header DAAP-Server: mt-daapd/svn-1281
2006-07-13 09:38:47: Emitting reponse header Accept-Ranges: bytes
2006-07-13 09:38:47: Emitting reponse header Date: Thu, 13 Jul 2006 07:38:47 GMT
2006-07-13 09:38:47: Entering config_set_status
2006-07-13 09:38:47: Exiting config_set_status
2006-07-13 09:38:47: Session 1: Streaming file '01-Hjá_þér.mp3' to 192.168.1.100 (offset 0)
2006-07-13 09:40:04: SocketDataReady got a packet from 192.168.1.100 to 224.0.0.251 on interface 192.168.1.3/eth0/2
...

now, I’m not sure if the user agent iTunes/4.6 (Windows; N)* refers to that of the mt-daapd server, or that of Rhythmbox. If you need further information, please let me know

Regards
Indriði