The reason I suspect that it's a permissions problem is that both the webserver and MDWS do work, on both the original RPi model B and the RPi2. In the latter case, this is with a vanilla Raspbian installation, so I know that the version of curl is OK.
If you extracted the files from the downloaded zip file using Windows, there may be an issue with permissions. To avoid this I suggest that you copy the downloaded zip file to the Pi user's home directory (/home/pi) and extract the files using the command line utility unzip. Run the program from there as an ordinary user.