Revision: 28555
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at July 9, 2010 20:10 by kalmi
Initial Code
#!/bin/bash # ping technorati #set -v # configuration ADDRESS="http://www.acooke.org/cute" NAME="C[omp]UTE" # (end of configuration) export PATH="$PATH:$CUTE_DIR/scripts" tmp=`mktemp` echo "<?xml version=\"1.0\"?> <methodCall> <methodName>weblogUpdates.ping</methodName> <params> <param> <value>$NAME</value> </param> <param> <value>$ADDRESS</value> </param> </params> </methodCall>" > "$tmp" size=`cat "$tmp" | wc -c` msg=`mktemp` echo "POST /rpc/ping HTTP/1.0 User-Agent: bash script across netcat - andrew@... Host: rpc.technorati.com Content-Type: text/xml Content-length: $size " > "$msg" cat "$tmp" >> "$msg" rm "$tmp" cat "$msg" cat "$msg" | nc rpc.technorati.com 80 rm "$msg"
Initial URL
bash_xmlrpc
Initial Description
Initial Title
XML RPC with bash/netcat
Initial Tags
Initial Language
Bash