Demo entry 6747674

Request with NTLM input

   

Submitted by anonymous on Jun 05, 2018 at 05:20
Language: Python 3. Code size: 406 Bytes.

import requests
from requests_ntlm import HttpNtlmAuth
session = requests.Session()
session.auth = HttpNtlmAuth('GICNT\\sysddatagateway','2INnsraz')
data = {'datasetid': 6,
        'date':"2018-04-16"}
files = {'file': open(r'C:\Users\limmin2\PycharmProjects\maildeploy\filesfolder\tmap.txt', 'rb')}
url = 'http://sinddatagateway:83/apis/uploadfile/'
r = session.post(url, data=data, files=files)

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).