urlopen exception

Paul Rubin http
Sat Jan 10 15:42:28 EST 2009


asit <lipun4u at gmail.com> writes:
> site="www.bput.org"
> payloads="<script>alert('xss')</script>"
> attack= urllib2.urlopen(site+payloads,80).readlines()
> 
> according to my best knowledge, the above code is correct.
> but why it throws exceptio ????

The code is incorrect.  Look at the string ou are sending into
urlopen.  What on earth are you trying to do?



More information about the Python-list mailing list