2

Is there any way to parse / interpret the XMLs sent as part of a DLNA / UPnP using Wireshark, or any other network sniffer?

I can get the raw packets, but it would be nice to see them parsed, to make debugging easier.

Mikeage
  • 2,751

3 Answers3

4

look at this sample of PS3 <--> XP

http://www.braham.org/playfile.txt

  1. filter 'tcp.port == 2869 && http.response' and
  2. right click decode as HTTP
  3. all the http that has: 'Content-Type: text/xml' in their header show the xml just fine

if you have code that send xml in http without say so in the header, it's not nice...

(in the this sample only "/ContentDirectory/scpd.xml" is being sent without content type)

Fruch
  • 156
1

Wireshark can reassemble packets to show you a complete view of a stream. Have a look at the docs. This will help you to look at the XML. It wont provide an analysis specific to DLNA.

If you want a nice view of the XML, I dont think Wireshark will do it directly, but if you copy / paste it in any good XML editor, it should do the trick. Even saving the XML as a fiel and opening it with Firefox or IE will do the trick.

Guillaume
  • 1,093
0

Well, wireshark or MS sniffer should dissect UPnP packets, and probably DLNA too.

Having packets dissected as a tree of information helps but it might not be trivial to see what's really happening there, and might require you to learn a bit about the protocols in order to debug the problems you may be having.

Have patience.

LatinSuD
  • 949