This script is available in sipclients package that must be installed separately from SIP SIMPLe client SDK package.


adigeo@ag-blink:~$xcap-icon -h
Usage: xcap-icon [options] GET|PUT

This example script will use the specified SIP account to download or upload
the specified icon file via XCAP.

  -h, --help            show this help message and exit
  -a ACCOUNT_NAME, --account-name=ACCOUNT_NAME
                        The name of the account to use.
  -i INPUT_FILENAME     The name of the file in case we are doing a PUT.
  -d, --download        Download the icon.
                        Name for storing the downloaded icon.


adigeo@ag-blink:~$xcap-icon -i /Users/adigeo/Library/Application\ Support/Blink/photos/CIMG4463-small.png PUT
Icon uploaded successfully
201 Created <http://node03.dns-hosting.info:8443/xcap-root/icon/users/sip:adi@umts.ro/LpBkQq61tmnKfG7zYRX3.png>
content-length: 0
server: OpenXCAP/1.1.3
connection: close
etag: "928a046a31c514486078d69937949fbb" 
date: Sat, 28 Nov 2009 10:59:42 GMT
content-type: application/icon