How to make an HTTP request from a plugin