Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/k/n/knock-HEAD/knock.py   knock(Download)
	for sub in wlist:
		subdomain = sub+"."+url
		header = knockcore.getheader(subdomain, "/", "GET")
		# bypass status code -> header[0] = 301
		if header and not header[0] == 301:
def getheaders(url, path, method):
	# Status -> header[0] 
	# Reason -> header[1]
	# Header -> header[2]
	header = knockcore.getheader(url, path, method)
def check_status(url, path, method):
	try:
		header   = knockcore.getheader(url, path, method)
		status   = str(header[0])
		reason   = str(header[1])