modified saveDocByUrl func rule.