コード例 #1
0
 def long_content_length(host, host_index, logger):
     request = Request(host, host_index, logger, name='long_content_length')
     request.add_header('Content-Length', str(sys.maxint))
     request.body = 'abcdefgh'
     return [request]
コード例 #2
0
def long_content_length(host, host_index, fingerprint):
    request = Request(host, host_index, logger)
    request.add_header('Content-Length', str(sys.maxint))
    request.body = 'abcdefgh'
    response = request.submit
    get_characteristics('long_content_length', response, fingerprint, host, host_index)
コード例 #3
0
 def unavailable_accept(host, host_index, logger):
     request = Request(host, host_index, logger, name='unavailable_request')
     request.add_header('Accept', 'abcd/efgh')
     return [request]
コード例 #4
0
def unavailable_accept(host, host_index, fingerprint):
    request = Request(host, host_index, logger)
    request.add_header('Accept', 'abcd/efgh')
    response = request.submit
    get_characteristics('unavailable_accept', response, fingerprint, host, host_index)