Add change url support

For POST and PUT requests content is now sent as JSON, as suggested by BrowserStack team.

The method name and signature could be improved, this is the best I could come up with.
You deleted the new line.