Re: curl and iTunes 4.0
Re: curl and iTunes 4.0
- Subject: Re: curl and iTunes 4.0
- From: Sherm Pendley <email@hidden>
- Date: Thu, 1 May 2003 20:28:59 -0400
On Thursday, May 1, 2003, at 04:54 PM, Ivan Myrvold wrote:
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.
Redezvous is a very elegant way to find machines on the local LAN that
provide a service you need, and getting their IP addresses.
Once you get an IP address, using it to obtain the XML file is just an
HTTP request - it has *nothing* to do with Rendezvous.
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
This is just an HTTP request, with the additional "Client-DAAP-Version"
header item. You could use any number of ways to construct and send such
a request - NSURLHandle, CurlHandle, raw sockets...
The important thing to know is that, unlike most HTTP (i.e. web)
servers, iTunes listens on port 3689, not port 80.
sherm--
"But i don't want to go among mad people," Alice remarked.
"Oh, you can't help that," said the Cat: "we're all mad here. I'm mad,
You're mad."
"How do you know I'm mad?" said Alice.
"You must be," said the Cat, "or you wouldn't have come here."
"Alice in Wonderland" - Lewis Carrol
_______________________________________________
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.