Make agent support sending url (bug #3543)