Bash script for POST request https xml-rpc on Gravatar -


i have project collect user information html local file. project aiming cross-platform , portable (require have bash git bash of github). collected data sent bash script custom protocol set previously. now, want use bash sign in gravatar using xml-rpc. found script

#! /bin/bash  # ping technorati  # 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" 

i wonder how transform https gravatar?


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -