Http requests not working in plugin

Can you provide logs from Saved/Logs when you try to run this code(trying HTTP conneciton)?