• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
curl and iTunes 4.0
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: curl and iTunes 4.0
      • From: Sherm Pendley <email@hidden>
    • Re: curl and iTunes 4.0
      • From: Andrew Pinski <email@hidden>
  • Prev by Date: RE: count only defined for abstract class error
  • Next by Date: Re: curl and iTunes 4.0
  • Previous by thread: Re: gdb call (NSRect)[nswindow frameRect...] crashes
  • Next by thread: Re: curl and iTunes 4.0
  • Index(es):
    • Date
    • Thread