curl and iTunes 4.0
curl and iTunes 4.0
- Subject: curl and iTunes 4.0
- From: Ivan Myrvold <email@hidden>
- Date: Thu, 1 May 2003 22:54:16 +0200
My cocoa application remote controls an iTunes application running on
another machine, using the remote machines iTunes XML file to select
tracks to play etc.
I have been investigating the new rendezvous feature of iTunes 4, and
wondering if maybe this could be a more elegant way to obtain the XML
file. I traced the initial tcp messages between an iTunes server and
client, and it looks like the server is sending a file to the client
when the user is clicking on a shared playlist in iTunes:
GET /server-info HTTP/1.1
Host: 207.207.207.253
Accept: */*
User-Agent: iTunes/4.0 (Macintosh; N; PPC)
Client-DAAP-Version: 1.0
Accept-Encoding: gzip
How can I make my program fooling the iTunes server to give me this
GZIP file? Is CURL the way to go? How do I construct a CURL message to
get it?
I was able to telnet to the server in Terminal.app with this (the
gibberish at the end is probably the first few lines of the compressed
file):
[Ivan-PowerBook:~] imyrvold% telnet 207.207.207.253 3689
Trying 207.207.207.253...
Connected to 207.207.207.253.
Escape character is '^]'.
GET /server-info HTTP/1.1
Host: 207.207.207.253
Accept: */*
User-Agent: iTunes/4.0 (Macintosh; N; PPC)
Client-DAAP-Version: 1.0
Accept-Encoding: gzip
HTTP/1.1 200 OK
Date: Thu, 01 May 2003 20:54:38 GMT
DAAP-Server: iTunes/4.0 (Mac OS X)
Content-Type: application/x-dmap-tagged
Content-Length: 128
Content-Encoding: gzip
?-.*c``C2C<[\RB'YCB/DnAQ>C2CB;B?C*C FECCCb $b <CCC:|+C#B CsRC$rKC#3b %b %sC#sC$Cb $C%
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.