Added ability to send HTTP request data if in web environment