Set ping type

Added the possibility to set the type of the keepalive ping to POST