add https support and decode material rcvurl