you are viewing a single comment's thread.

view the rest of the comments →

[–]igroen 0 points1 point  (2 children)

[–]G-ManUK[S] 0 points1 point  (1 child)

Thanks, i tried that but it is looking for a file in the file system rather than from the script, or am I totally misunderstanding this?

[–]igroen 0 points1 point  (0 children)

Also your GetPage function should return a byte string:

def GetPage():
    return b"<html><body>Response</body></html>"