Set a user agent and a referer to wget to make it anonym and bypass some security check.

jQuery tips – Propagate an event to a child avoiding infinite loops
Detect the source of an event and propagate it to a child avoiding the potential infinity loop.