6.2. Report the packets using a packet sniffer

A packet sniffer allows you to examine the contents of http requests and responses. This information is useful in debugging an XML-RPC call.

Wireshark
This software is included in many Linux distributions. Alternatively you can download from http://www.wireshark.org/. There are downloads for many different operating systems including Windows.

TcpTrace for Windows
The software has been compiled by PocketSOAP for Windows. You can download the software from http://www.pocketsoap.com/tcptrace/.

The details will vary depending on the packet sniffer you use. If using Wireshark, start the capture, run your XML-RPC Wordtracker call and then stop the capture. Right click on the first HTTP packet line and then select 'Follow the TCP Stream'. Please see the screenshot below:

The content of the TCP stream includes the XML:

POST / HTTP/1.0
Host: test.xmlrpc.wordtracker.com
Content-Type: text/xml
User-Agent: The Incutio XML-RPC PHP Library
Content-length: 149

<?xml version="1.0"?>
<methodCall>
<methodName>ping</methodName>
<params>
<param><value><string>guest</string></value></param>
</params><
/methodCall>

HTTP/1.1 200 OK
Date: Fri, 07 Oct 2005 13:27:55 GMT
Server: Apache
X-Powered-By: PHP/4.3.11
Connection: close
Content-Length: 146
Vary: Accept-Encoding
Content-Type: text/xml

<?xml version="1.0" encoding="utf-8" ?>
<methodResponse>
<params>
<param><value>
<boolean>1</boolean>
</value></param>
</params>
</methodResponse>