Do something when getting a HTTP request