Your best bet for understanding the script, is to open the http-open-proxy.nse script in a text editor of your choice and look at the code behind it. You will see the methods it uses and what responses you should be looking for in case of a negative or positive results.
For instance, it looks for ...
[ more ]