Log URL before requesting it.
Split into two apps with common initialization for easier running.