How to use the aquests.postform function in aquests

To help you get started, we’ve selected a few aquests examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github hansroh / aquests / tests / test_get_proxypass_post.py View on Github external
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 ()
github hansroh / aquests / tests / test_post_but_404_facebook.py View on Github external
def test_post_but_404_facebook ():
	for i in range (1):
		aquests.postform ("https://www.facebook.com/asdakjdhakjdhajkdhajkd", {"aa.": "a" * 10000000})
	
	aquests.fetchall ()
github hansroh / aquests / tests / test_post_but_405_google.py View on Github external
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 ()
github hansroh / aquests / examples / post_but_405_google.py View on Github external
import aquests

for i in range (3):
	aquests.postform ("https://www.google.co.kr/search?q=pypi", {"aa.": "aaa"})

aquests.fetchall ()
github hansroh / aquests / examples / get_proxypass_post.py View on Github external
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 ()
github hansroh / aquests / examples / postform.py View on Github external
import aquests

aquests.configure (10)
for i in range (100):
	aquests.postform ("http://127.0.0.1:5000/post", {'username': 'A' * 1000000})
aquests.fetchall ()