Update app.py
Browse files
app.py
CHANGED
|
@@ -110,7 +110,7 @@ async def main(urls):
|
|
| 110 |
|
| 111 |
async def post(url, session, json_data, headers, timeout=120):
|
| 112 |
try:
|
| 113 |
-
print('main_post: ', type(url), len(url), type(headers), len(headers), type(json_data), len(json_data)
|
| 114 |
async with session.request(method='post', url=url, timeout=timeout, headers=headers, json=json_data) as response:
|
| 115 |
resp = await response.read()
|
| 116 |
print("Successfully got url {} with resp of length {}.".format(url, len(resp)))
|
|
|
|
| 110 |
|
| 111 |
async def post(url, session, json_data, headers, timeout=120):
|
| 112 |
try:
|
| 113 |
+
print('main_post: ', type(url), len(url), type(headers), len(headers), type(json_data), len(json_data))
|
| 114 |
async with session.request(method='post', url=url, timeout=timeout, headers=headers, json=json_data) as response:
|
| 115 |
resp = await response.read()
|
| 116 |
print("Successfully got url {} with resp of length {}.".format(url, len(resp)))
|