Demo entry 6347350

eeee

   

Submitted by eee on Feb 14, 2017 at 10:05
Language: Python. Code size: 281 Bytes.

import requests

key = 'some key'
params = {'api-key': key, 'private': 'No'}
files = [('main-file', open('/home/irene/.emacs', 'rb'))]
response = requests.post('http://localhost:5000/dpiapi/v1/scan', data=params,
                         files=files)
print response.json()

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).