Code:
getResponse="HTTP/1.1 200 OK\r\nContent-Length: %d\r\nCache-Control: no-cache\r\n\r\n%s" % (payloadLength,byteString) getResponse = unicode(getResponse)
I am trying to replace "200 OK" from getResponse string with "500", using getResponse.rep lace(...)
Internally it convert string to unicode, I have just made it explicitly for better understanding.
Any help?
Comment