Hi Guys,
I am very new to python and I am trying to send HTTP headers for
redirection using sockets in python 3, but in vain. If I use the meta
tag REFRESH method the redirection works. Please advise what I am
missing, below is the snippet of my code:
hostsock is the socket object
print('Redirecting client')
hostsock.send("""HTTP/1.1 301 Moved Permanently
Location: http://www.example.com"")
I have been up all night trying to figure this one out : ( I would be
grateful if someone could point me in the right direction
Regards,
Nav
--
http://mail.python.org/mailman/listinfo/python-list