Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If you have used Firebug, you know that you can see the "AJAX" requests back and forth. And you can see the headers sent.

I would like the same thing. Except, I would like to sniff iTunes. I want to know the REST API that iTunes uses to talk to the cloud. As well as the user-agent and headers sent.

share|improve this question

closed as off topic by Kyle Brandt, Chopper3, Doug Luxem, Ward, squillman Apr 16 '10 at 20:17

Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

How do you mean 'talk to the cloud'? what cloud do you think it talks to? – Chopper3 Apr 16 '10 at 19:26
@Chopper3, I would guess the idea is to try and reverse engineer the iTunes Communication with the iTunes store. Or perhaps he is trying to hack into the DRM authentication. – Zoredache Apr 16 '10 at 20:19
What evidence do you have that the iTunes communication you would like to monitor is REST based and not some proprietary protocol? – Zoredache Apr 16 '10 at 20:19

I would suggest Wireshark.

share|improve this answer
I am capture all the data. But, how do I see exactly what parameters and what URL is iTunes going to? I want it to be like FireBug, where I can copy the AJAX url. – Alex Apr 16 '10 at 19:17
I believe iTunes uses SSL for communication with its store. Short of doing some pretty advanced hacking it may not be possible to accomplish anything useful. – Zoredache Apr 16 '10 at 20:15

I think your best bet would be to use something like Ethereal. It will allow you to sniff all the packets coming in and out of your machine.

share|improve this answer
Ethereal is now [and has been for some time] Wireshark. If you check the linked site, which you provided, has not been updated in several years. – jscott Apr 16 '10 at 19:18
As the original author of both Ethereal and Wireshark I can confirm that jscott is correct. Ethereal is long dead. Please stop using it. – Gerald Combs Apr 16 '10 at 19:26
good to know. Thanks – nbartolomeo Apr 16 '10 at 19:34
Am I the only one that thinks it's cool to see the author of Ethereal and Wireshark on the forum commenting on a question pertaining to his software? – Bart Silverstrim Apr 16 '10 at 22:18

I suggest Fiddler. A bit easier to read than the raw packet capture from Wireshark. Additionally, it allows you to mess with requests/responses sent.

Also check out this developer article on how to use it effectively.

NOTE: It captures HTTP(s) traffic on the wire so it can be used with virtually any program.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.