Search code examples
httpasynchronousnsissendasynchronousrequest

NSIS: Make async web request with query string


How do I make an asynchronous GET request to URL like http://www.example.com/somepage?param1=val1&param2=val2 in NSIS. I don;t care about response - all I want is make a request and disregard response (so not for downloading files).

Currently I use inetc plugin, however it is less than optimal for 2 reasons:

  1. It is blocking (not asynchronous), resulting in installation "mini-hangs"
  2. It needs output file, which is really not necessary and serves no purpose for my needs.

So, is there a way to make async web requests from NSIS?


Solution

  • You could try the InetBgDL plug-in but you are still stuck with having to deal with the output file. You can just dump those into $pluginsdir...