()
| 11 | import requests |
| 12 | |
| 13 | def test(): |
| 14 | ip = 'localhost' |
| 15 | port = '8080' |
| 16 | url = f'http://{ip}:{port}/analyze/bytes' |
| 17 | data = b'abcde' |
| 18 | |
| 19 | headers = {'Content-Length': f'{len(data)}', 'Content-Type': '*/*'} |
| 20 | res = requests.post(url, data=data, headers=headers) |
| 21 | print(res.content) |
| 22 | |
| 23 | |
| 24 | if __name__ == "__main__": |