-1

I am getting error while executing below line:

print urllib.urlopen('http://'+dns+'/password?passwd='+PASSWORD).read

Error:

IOError: ('http protocol error', 0, 'got a bad status line', None)

However, it's working fine with webbrowser.open_new

Aquarius24
  • 1,706
  • 6
  • 29
  • 60

1 Answers1

0

.read just references the method name. Try calling it, by adding paranthesis:

.read()
Corey Goldberg
  • 56,214
  • 26
  • 121
  • 139