Plugin http/https handling