to emulate a app's http request