You can use WinHTTP from LotusScript code in an event script or in an agent, but that will only work on Windows machines. If you need to run on platforms other than Windows, you will have to write Java code, which means the code will have to be in an agent.