Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_get_proxypass_post ():
aquests.configure (1, callback = finish_request, force_http1 = 0)
for i in range (5):
aquests.postform ("http://127.0.0.1:5000/lb/lib/login.htm", {'fid': 'i' * 105535})
#aquests.postform ("http://127.0.0.1:5000/lb/lib/login.htm", {'fid': 'i' * 1055})
aquests.fetchall ()
def test_post_but_404_facebook ():
for i in range (1):
aquests.postform ("https://www.facebook.com/asdakjdhakjdhajkdhajkd", {"aa.": "a" * 10000000})
aquests.fetchall ()
def test_post_but_405_google ():
for i in range (3):
aquests.postform ("https://www.google.co.kr/search?q=pypi", {"aa.": "aaa"})
aquests.fetchall ()
import aquests
for i in range (3):
aquests.postform ("https://www.google.co.kr/search?q=pypi", {"aa.": "aaa"})
aquests.fetchall ()
import aquests
def finish_request (response):
print (response.version, response.status_code, response.reason, len (response.content))
print (response.content [:180])
print (response.content)
aquests.configure (1, callback = finish_request, force_http1 = 0)
for i in range (5):
aquests.postform ("http://127.0.0.1:5000/lb/lib/login.htm", {'fid': 'i' * 105535})
#aquests.postform ("http://127.0.0.1:5000/lb/lib/login.htm", {'fid': 'i' * 1055})
aquests.fetchall ()
import aquests
aquests.configure (10)
for i in range (100):
aquests.postform ("http://127.0.0.1:5000/post", {'username': 'A' * 1000000})
aquests.fetchall ()