Adding headers options to remote.
Correcting failure in setting query string.