GET POST methods request return HTTP self _method Host self _host int

1
2
3
4
5
#GET/POST methods request
return "%s / HTTP/1.1 \r\n" % (self._method) + \
"Host: %s:s% \r\n" % (self._host, int(self._port)) + \
"User-Agent: %s \r\n" % USER_AGENT + \
"Connection: close\r\n\r\n"